Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
I have a common pattern where I like to duplicate a couple of lines. To do this I highlight the text, copy, paste and paste again. Now, pasting does not remove the text selection, so the second paste overwrites the first paste, leaving me exactly where I started.
What is the value of this functionality change?
If this is an intentional change, is there another flow to do what I am trying to accomplish?
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
So bad this non practical use and non common sense "beheavier" is turned on as default and there is no settings for that.
And it didn't even do the "Keep the text selected after pasting it (#59881)" job at all, as pasting while not selecting anything afterwards no text is keeped to be selected.
The way to work around might be Ctrl+Shift+V. One more key is needed to press now, great.
Sorry I can't repro this. So after you have pasted, then the pasted text is selected? Maybe a screenshot or video would help.
It seems to be somehow associated with the workspace. When I close my workspace and open a new window with no open workspace everything works as expected, however when I use my workspace the copy+paste behavior is as described.
Video:
https://drive.google.com/open?id=1qnl6Q_xCDThcs7zZLobFozj36IwvJE3Y
Also FWIW I first saw this in 1.39.1 and also after updating to 1.39.2, in Windows 10
I think this is a bug happened when the option java.actionsOnPaste.organizeImports is true. The option also affect multi cursor pasting.
I see. So this doesn't happen if you start vscode with --disable-extensions right?
Good call @dk88711 once I disabled the Language Support for Java(TM) by Red Hat my copy+paste functionality went back to normal. I suppose this issue should be taken up with the dev team of that plugin. Thanks for the tip!
As per @zcoffin86
Closing
Most helpful comment
Good call @dk88711 once I disabled the Language Support for Java(TM) by Red Hat my copy+paste functionality went back to normal. I suppose this issue should be taken up with the dev team of that plugin. Thanks for the tip!