Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i paste some text with Ctrl+v, I see a circle at cursor. #3426

Closed
acodervic opened this issue Dec 12, 2023 · 8 comments
Closed

When i paste some text with Ctrl+v, I see a circle at cursor. #3426

acodervic opened this issue Dec 12, 2023 · 8 comments

Comments

@acodervic
Copy link

When i paste some text with Ctrl+v, I see a circle at cursor.

image

vscode extensions: only have redhat v1.25.1

vscode version: 1.83.1

@acodervic
Copy link
Author

acodervic commented Dec 12, 2023

How to fix this ?
The circle at the cursor spins for a long time, more than 3 seconds, and it has already affected my normal work.

@rgrunber
Copy link
Member

rgrunber commented Dec 12, 2023

You can try "editor.pasteAs.enabled": false. I think that should make the delay go away. The extension can do some extra work when code is pasted (eg. escape certain characters when pasting inside a string, add needed imports for pasted types)

Would you be able to try the vscode-java pre-release (currently at 1.26.2023121208) and check if the problem still occurs there ?

We had some recent performance improvements to "Organize Imports" (#3383) which can get triggered as part of pasting code (the part that checks whether the code you are pasting requires the addition of more imports), so I'm trying to check if your issue will be already fixed in the next release, or whether this is something new.

@acodervic
Copy link
Author

You can try "editor.pasteAs.enabled": false. I think that should make the delay go away. The extension can do some extra work when code is pasted (eg. escape certain characters when pasting inside a string, add needed imports for pasted types)

Would you be able to try the vscode-java pre-release (currently at 1.26.2023121208) and check if the problem still occurs there ?

We had some recent performance improvements to "Organize Imports" (#3383) which can get triggered as part of pasting code (the part that checks whether the code you are pasting requires the addition of more imports), so I'm trying to check if your issue will be already fixed in the next release, or whether this is something new.

Thank for your answer,I switch the vscode-java to the version a year ago , It is working good . I think the problem is appear on current code.

@acodervic
Copy link
Author

You can try "editor.pasteAs.enabled": false. I think that should make the delay go away. The extension can do some extra work when code is pasted (eg. escape certain characters when pasting inside a string, add needed imports for pasted types)

Would you be able to try the vscode-java pre-release (currently at 1.26.2023121208) and check if the problem still occurs there ?

We had some recent performance improvements to "Organize Imports" (#3383) which can get triggered as part of pasting code (the part that checks whether the code you are pasting requires the addition of more imports), so I'm trying to check if your issue will be already fixed in the next release, or whether this is something new.

Where can i found this version (1.26)?

@acodervic
Copy link
Author

You can try "editor.pasteAs.enabled": false. I think that should make the delay go away. The extension can do some extra work when code is pasted (eg. escape certain characters when pasting inside a string, add needed imports for pasted types)

Would you be able to try the vscode-java pre-release (currently at 1.26.2023121208) and check if the problem still occurs there ?

We had some recent performance improvements to "Organize Imports" (#3383) which can get triggered as part of pasting code (the part that checks whether the code you are pasting requires the addition of more imports), so I'm trying to check if your issue will be already fixed in the next release, or whether this is something new.

I already found the version 1.26 , I will test at today and report issues if still have problem.

@rgrunber
Copy link
Member

See https://marketplace.visualstudio.com/items?itemName=redhat.java under "Version History".

@rgrunber
Copy link
Member

@acodervic did the problem go away ?

Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants