Microsoft/vscode

Support X11 primary selection buffer in inputs

Open

#167,266 opened on Nov 25, 2022

View on GitHub
 (11 comments) (1 reaction) (0 assignees)TypeScript (74,848 stars) (10,221 forks)batch import
feature-requesthelp wantedkeeplinuxworkbench-os-integration

Description

This affects Linux users who make use of the primary selection buffer.

Related: https://github.com/microsoft/vscode/issues/130208

Normally you can select something, and then you can paste your most recent selection by middle clicking. It seems like whenever you open an input, eg Command Palette or the File Picker, the contents of the input are considered as a "selection" by the OS so overwrite the primary selection buffer.

Eg, say you are on a website which says "Run the foo command from the command palette". You select "foo", switch to VS Code. Run command palette, and middle click expecting it to paste "foo", however, instead it pastes ">".

Contributor guide