You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[provide a description of the issue]
With the Language Support for Java(TM) by Red Hat installed in VS Code, moving the cursor to any line of Java source code and copying the line with Ctrl + C and pasting it with Ctrl + V without selecting characters causes unintended behavior.
Environment
Operating System: Windows 11 Pro 23H2 22631.2861
JDK version: 17.0.3.7
Visual Studio Code version: 1.85.1
Java extension version: 1.25.1
Steps To Reproduce
Start VS Code
Install Language Support for Java(TM) by Red Hat
Restart VS Code
Open a file with any .java extension
Copy and paste one line
Current Result
Expected Result
※ Behavior when uninstalling the Language Support for Java(TM) by Red Hat.
Additional Informations
This text is written in Japanese and translated at DeepL.
The text was updated successfully, but these errors were encountered:
As a workaround, could you try adding the following to either your workspace or user settings :
"[java]": {
"editor.pasteAs.enabled": false
}
It should disable our paste support for the Java language only. If the problem no longer occurs, it's definitely related to vscode-java.
I'm not yet able to reproduce this so it could be a combination of either Windows 11 or the DeepL extension (assuming that's what you have ?) inserting additional characters. With that said, I think this might get solved by fixing #3444 . Our paste support should do nothing in cases where there's no interesting content to adjust.
While I can't reproduce the problem, the fix for #3444 surely also fixes this, as pasting no longer shows vscode-java involved, i.e. this pasting selector icon is no longer visible:
[provide a description of the issue]
With the
Language Support for Java(TM) by Red Hat
installed in VS Code, moving the cursor to any line of Java source code and copying the line withCtrl + C
and pasting it withCtrl + V
without selecting characters causes unintended behavior.Environment
Steps To Reproduce
Language Support for Java(TM) by Red Hat
.java
extensionCurrent Result
Expected Result
※ Behavior when uninstalling the
Language Support for Java(TM) by Red Hat
.Additional Informations
This text is written in Japanese and translated at DeepL.
The text was updated successfully, but these errors were encountered: