Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle mouse button invokes column selection and selection paste on Linux at the same time #49693

Closed
CherkashinSergey opened this issue May 11, 2018 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-clipboard Editor clipboard issues editor-columnselect Editor column selection issues linux Issues with VS Code on Linux verified Verification succeeded
Milestone

Comments

@CherkashinSergey
Copy link

Issue Type: Bug

  1. Save some text file.
  2. Use middle mouse button to select column.
  3. See, that file is already considered as changed.

VS Code version: Code 1.23.1 (d0182c3, 2018-05-10T16:04:28.220Z)
OS version: Linux ia32 4.4.0-124-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz (4 x 2494)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 1.97GB (0.64GB free)
Process Argv /usr/share/code/code --unity-launch
Screen Reader no
VM 100%
Extensions (3)
Extension Author (truncated) Version
gitlens eam 8.2.4
cpptools ms- 0.17.0
code-spell-checker str 1.6.10
@bpasero bpasero assigned alexdima and bpasero and unassigned bpasero May 11, 2018
@bpasero
Copy link
Member

bpasero commented May 11, 2018

@CherkashinSergey can you share a video how this looks like?

@bpasero bpasero added the info-needed Issue requires more information from poster label May 11, 2018
@CherkashinSergey
Copy link
Author

filechanging

@bpasero
Copy link
Member

bpasero commented May 12, 2018

@CherkashinSergey could it be that somehow you execute "Paste" too? Can you run the command "Compare active file with saved" to find out the diff?

@alexdima alexdima changed the title File is considered as altered after usung middle mouse button to select colunm. Middle mouse button invokes column selection and selection paste on Linux at the same time May 14, 2018
@alexdima alexdima added this to the May 2018 milestone May 15, 2018
@vscodebot vscodebot bot removed the new release label May 15, 2018
@gombosg
Copy link

gombosg commented May 18, 2018

I'm having the same issue on Fedora 28. "Middle click paste" is disabled in GNOME Dconf (org.gnome.desktop.interface gtk-enable-primary-paste=false) but AFAIK this only affects GTK apps (middle-click paste still works in terminal windows) and there could be a separate Electron setting, too.

E.g. in Firefox, it has to be disabled in about:config (middlemouse.paste property).
In Chromium it's enabled by default and I haven't found a similar configuration value to disable it. 😞

Middle-click paste is something of a default behavior for *NIX systems, but apparently this can cause conflicts.

@bpasero bpasero removed their assignment May 18, 2018
@alexdima alexdima added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux and removed info-needed Issue requires more information from poster labels May 29, 2018
@alexdima alexdima modified the milestones: May 2018, On Deck May 31, 2018
@cjhowedev
Copy link

If you have something in your clipboard, it will paste it as well. There's no way to disable this behavior in X, so the middle click column selection feature is unusable on Linux (Code doesn't run under Wayland afaict).

@ivanstepanovftw
Copy link

Middle click works well in IDEA under X, but not in OSS...

@ivanstepanovftw
Copy link

ezgif-3-8ce242c8dcb2

@alexdima alexdima added editor-clipboard Editor clipboard issues editor-columnselect Editor column selection issues labels Oct 10, 2019
@alexdima alexdima modified the milestones: On Deck, October 2019 Oct 11, 2019
@joaomoreno joaomoreno added the verified Verification succeeded label Oct 30, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-clipboard Editor clipboard issues editor-columnselect Editor column selection issues linux Issues with VS Code on Linux verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants