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
Since the version 0.51.0 is out, I had strange bugs. Some copy/paste fonctionnality is buggy, like paste with multi-selector or the copy/paste of a line.
First case
Steps to reproduce :
Copy a text with ctrl+c
Use multiselection
Paste the text with ctrl+v
Current Result
Paste the text only on the first selection.
Expected Result
The text copied should be paste on all selection.
Second case
Steps to reproduce :
Put your cursor anywhere on a line without selection
Hit ctrl+c
Hit ctrl+v
Current Result
Paste the line copied at the cursor.
Expected Result
A copy of the line should be pasted above the line where the cursor is located.
I hope this post is clear and thanks for reading.
Environment
Validation : 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date : 2019-10-15T15:33:40.634Z
Électron : 4.2.10
Chrome : 69.0.3497.128
Node.js : 10.11.0
V8 : 6.9.427.31-electron.0
OS : Linux x64 5.2.0-2-amd64
Activity
fbricon commentedon Oct 21, 2019
Indeed, this was mentioned in #1098

See:
For now you should disable the autoimport on paste feature with
deather commentedon Oct 21, 2019
Thanks for the response but this doesn't fix the bug. The only way I found is to downgrade to version 0.50.0.
fbricon commentedon Oct 21, 2019
sorry, that was the wrong preference, try
"java.actionsOnPaste.organizeImports": falsedeather commentedon Oct 21, 2019
It seems to be ok with this settings 👍
Really thanks @fbricon
[-]Bug with copy/paste[/-][+]Bug with multicursor copy/paste[/+]fbricon commentedon Oct 22, 2019
@deather you can install the latest CI build containing the fix, from https://download.jboss.org/jbosstools/jdt.ls/staging/?C=M;O=D
deather commentedon Oct 22, 2019
I tested the latest CI build. The first bug is fixed, but the second is still there.