Microsoft/vscode
在 GitHub 查看Integrated terminal: Inserting X selections requires precise mouse positioning
Open
#157,233 创建于 2022年8月5日
bughelp wantedlinuxterminal-input
仓库指标
- Star
- (74,848 star)
- PR 合并指标
- (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)
描述
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.70.0
- OS Version: Debian 11.4, Gnome Shell 3.38.6, X11 7.7+22
I've noticed this being an issue for few months now.
Steps to Reproduce:
- Open the embedded terminal (Ctrl+`)
- Select a word (either in the terminal, in the editor window, or another window), to copy the selection into the primary X selection buffer. Do not hit (Shift+)Ctrl+C
- Ensure the selection is copied, by clicking with the middle mouse into an editor. This should paste the previous selection.
- Try the same in the terminal window:
- if you click on an area free of text, the selection is inserted
- if you click on an area with text in it, the selection does not appear (this is the bug)
https://user-images.githubusercontent.com/327411/183039470-9d834491-8748-453c-b2fb-a3585556374e.mp4
Workarounds:
- Use the clipboard. This is annoying, because for me, selecting text with the mouse, moving the mouse a few 100 pixel down and clicking the middle mouse button (or the scroll wheel in my case) is much faster than Ctrl+C, Ctrl+`, Ctrl+Shift+V.
- Click on an area without text. This is annoying, because I need to be precise with the mouse positioning. If the terminal is full of program output, I need to hit the last line (containing the prompt).
See also: