code-server icon indicating copy to clipboard operation
code-server copied to clipboard

[Chrome] Selection is resulting in copy/clipboard.

Open grohf opened this issue 7 years ago • 4 comments

  • code-server version: 1.30 to 1.32.0-282
  • OS Version: Ubuntu/Windows => Chrome

Description

In Chrome: Selecting anything in the editor will copy the text to clipboard. In Firefox: Selecting anything in the editor will not copy the text to clipboard. (like expected)

Tested on Ubuntu 18.04 with chromium-browser and also tunneled to Windows with Chrome.

Steps to Reproduce

  1. Select some text in the editor.
  2. The selected word will be in your clipboard (Ctrl+V). Expected (in default): your clipboard should not be overwritten by selection.

I'm not sure if it is a bug in the actual meaning or even in the code-server. However, it is annoying and maybe someone knows a solution. Thanks!

I would like give thanks for the development of code-server. I'm looking quite some time for a solution like that. And finally there is one that is actual usable! :)

grohf avatar Mar 19 '19 15:03 grohf

Will fix. Thanks for the report!

kylecarbs avatar Mar 19 '19 15:03 kylecarbs

Adding the following to my settings.json fixed for me:

    "editor.emptySelectionClipboard": false,
    "editor.selectionClipboard": false

ksafranski avatar Mar 21 '19 17:03 ksafranski

Have the same issue, adding the lines above doesn't help in my case.

Muruloki avatar Mar 25 '19 00:03 Muruloki

Fixed with the latest release.

kylecarbs avatar Mar 27 '19 02:03 kylecarbs