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

Paste the whole line does not work correctly #3236

Closed
ShuFengMuYu opened this issue Aug 4, 2023 · 3 comments
Closed

Paste the whole line does not work correctly #3236

ShuFengMuYu opened this issue Aug 4, 2023 · 3 comments

Comments

@ShuFengMuYu
Copy link

Ctrl+C or Ctrl+X would copy or cut the entire line behind the caret to the clipboard (including the newline).
Normally, pasting that line with Ctrl+V would insert the line before the line where the cursor is located .
However, when this extension is enabled, I tried to perform the same action, it seems to copy the entire line and then paste it just after the cursor.

Similar issuse has occurred. microsoft/vscode#83003
But It seems that only java files are affected now.

Environment
  • Operating System: Windows 10 19045.3208
  • JDK version: jdk8 for my project, the default jdk for this extension
  • Visual Studio Code version: 1.81.0
  • Java extension version: 1.21.0
Steps To Reproduce (Ctrl+C Ctrl+V for example)
  1. keep the cursor in a line normally
    image
  2. Ctrl+C and Ctrl+V
Current Result

image

Expected Result

image

Additional Informations
@andy98725
Copy link

This looks related to / possibly caused by #3237 . Are there any additional keyboard shortcuts added when you enable the extension?

@ShuFengMuYu
Copy link
Author

This looks related to / possibly caused by #3237 . Are there any additional keyboard shortcuts added when you enable the extension?

I do not think the correlation between these is very strong. Because Paste using 'Language Support for Java(TM) by Red Hat' extension and Insert Plain Text cause the same result. Besides, pasting the whole line is expected to insert the line in front of the line where the cursor is located rather than cause the cursor to move.

@hopehadfield
Copy link
Contributor

hopehadfield commented Jan 11, 2024

#3444 fixes this issue. Should no longer be a problem in v1.26.0 of vscode-java.

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

4 participants