Skip to content

Unreliable middle-mouse-button paste in integrated terminal on Linux #272927

@orucky

Description

@orucky

Type: Bug

On Linux desktop there exists the primary selection mechanism: after selecting a text, middle mouse button click pastes it at the position of the cursor. This is a feature that is widely used when working with terminal.

Currently this is partially broken in VSCode's integrated terminal: after selecting a text, middle mouse button click often does nothing. It sometimes helps to move the mouse a bit before pressing the button, occasionally it is necessary to move the mouse into particular regions of the integrated terminal, in other cases nothing helps. Repeated middle button press without moving the mouse in between never helps. On the whole, I haven't been able to observe a clear pattern of the bug / reliable workaround.

Happens regardless whether the terminal integration is on or off.

I don't remember a similar issue in the past (Kubuntu 24.04, VSCode approx. Q1/25 and older) - and I'd most likely notice as I use this feature all the time.

OS: Kubuntu 25.04, happens both on X11 and Wayland

VSCode:
Version: 1.105.1
Commit: 7d842fb
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-34-generic

VS Code version: Code 1.105.1 (7d842fb, 2025-10-14T22:33:36.618Z)
OS version: Linux x64 6.14.0-34-generic
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-1245U (12 x 4004)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 0, 1, 1
Memory (System) 15.29GB (9.69GB free)
Process Argv --crash-reporter-id dcca281d-4946-4888-9173-83c2b9a817e9
Screen Reader no
VM 0%
DESKTOP_SESSION plasmax11
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE x11
Extensions (5)
Extension Author (truncated) Version
cmake-tools ms- 1.21.36
cpptools ms- 1.28.3
cpptools-extension-pack ms- 1.3.1
qt-core the 1.8.0
qt-qml the 1.8.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31351930
6abeh943:31336334
aa_t:31379598
gendocstringt:31405074
0574c672:31404437
cloudbuttont:31379625
todos-1:31405332
v66_all_req:31402695
treatment_gpt5applypatchexclusively:31398171
42190218_ostrepl:31403339
trigger-command-fix:31379601
auto_model_enabled:31385282
grok-v2-prompt:31401223
use-responses-api:31390855
applesignin:31399435
afag3459:31405348

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfirmation-pendinghelp wantedIssues identified as good community contribution opportunitiesterminal-inputRelating to typing in the terminal not doing the right thing, IMEs not working, etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions