Issue Type: Bug
Copy Paste doesnt work
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:47:44.719Z)
OS version: Darwin x64 18.7.0
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
/needsMoreInfo
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!
This is a valid problem. Happening for multiple people in the office using MacOS Mojave. If you have something in your clipboard, a string of text for example and you double click to highlight another string of text and paste it no longer replaces it just pastes what you were trying to replace in the middle of the highlighted word. I have to manually highlight the word I want to replace, no longer able to double click to highlight.

Above image shows it now pastes the new item in the middle of the highlight area after selecting via double click rather than replacing.
Thanks!
@bmtdh thanks for adding more details, but please provide individual steps so that we can precisely reproduce the problem. For example,
Current selection can be any string, in my case it is a variable name. I double click a varable name that I want to copy and replace via pasting

Now I press cmd + v


It seems like the issue is actually the selecting of content not the pasting because if I manually select a word by clicking and dragging it works fine.
Thanks!
Same issue for me ✋
Same OS, same behavior.
I'm using 1.40.2 and tried following with content
const stringToCopy = ""
const stringToPaste = ""
stringToCopy and press Cmd+CstringToPaste and press Cmd+V
but I didn't reproduce this issue. Did anyone know what I miss here?
It would be great if you can try follow to help narrow down the issue
code --disable-extensions and see if you can reproduceThanks!
Using code-insiders I am able to reproduce on macOS Mojave 10.14.6 with --disable-extensions and .vscode/settings.json commented out.
$ code-insiders --disable-extensions .
[Able to repro]
$ code-insiders --version
1.41.0-insider
a63d88ec550107a66c08d813fb5d3c32c9e131a7
x64
It is intermittent for sure, doesn't happen all the time. I am also now noticing then when I do double click to copy, it highlights a single word but actually it is copying the entire line... Intermittent again.
Thanks!
Same issue with Catalina...
@bmtdh @glarivie could you check the status bar and check the selection status to see if it's correct or not?

Always seems to be correct for me.
Thanks,
I do not see (# selected) when I've gone to paste and had my selection insert in between where my cursor was rather than replace the selection. My double-clicked selection shows itself as highlighted when this happens.
I'm seeing this behavior as well on macOS Mojave. As far as I can tell, here is what is happening: when I double click an identifier, like a variable name in a JS file, there is a slight delay before the text is "actually" selected.
You can tell because once it's "actually" selected the highlight color changes (becomes slightly darker). If I'm fast enough and happen to hit cmd-V before that occurs, it seems to copy the whole line, rather than just the identifier I'm expecting.
You can see the color-change delay here:

@apbendi I've seen that behavior as well. The other one where you highlight the text but insert it inside seems to happen more if you double click between two letters. It's not consistent, but highly reproducible.
This looks like caused by https://github.com/microsoft/vscode/issues/83150 and tomorrow's Insiders should have this issue fixed.
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Happy Coding!
Most helpful comment
I'm seeing this behavior as well on macOS Mojave. As far as I can tell, here is what is happening: when I double click an identifier, like a variable name in a JS file, there is a slight delay before the text is "actually" selected.
You can tell because once it's "actually" selected the highlight color changes (becomes slightly darker). If I'm fast enough and happen to hit cmd-V before that occurs, it seems to copy the whole line, rather than just the identifier I'm expecting.
You can see the color-change delay here: