Microsoft/vscode

Forced mouse selection in terminal cleared after mouse movement under 1003 (all events) and 1006 (SGR) combination

Open

#194,554 创建于 2023年10月1日

在 GitHub 查看
 (1 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
bugconfirmedhelp wantedterminal-inputupstreamupstream-issue-linked

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

Does this issue occur when all extensions are disabled?: I don't know how to run it with --disable-extensions when I'm simply opening Visual Studio Code - Insiders.app. But this is a fresh download and I have not installed any custom extensions.

  • VS Code Version:
Version: 1.83.0-insider (Universal)
Commit: 4268e464763087044d0c1b5bdd37ebbe683cadfa
Date: 2023-09-29T20:44:15.716Z (1 day ago)
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin x64 21.6.0
  • OS Version: macos 12.6.3

Steps to Reproduce:

  1. Turn on the Mac Option Click Forces Selection option in settings.
  2. Open integrated terminal, type printf '\e[?1003h' to allow terminal to intercept all events. 2.1 Move mouse around, observe that mouse events are being printed. 2.2 Option-click to make a selection, observe that a selection can be made. 2.3 Move mouse around, observe that the selection is still there. Video recording: https://github.com/microsoft/vscode/assets/10082143/f3145519-6b70-4ccf-a681-e615e823703a
  3. In the same terminal, type printf '\e[?1006h' to use SGR format. 3.1 Move mouse around, observe that mouse events are being printed in a different format 3.2 Option-click to make a selection, observe that a selection can be made. But it disappears as soon as the mouse moves. Note that it might not be obvious from the screen recording, but as long as I make the selection carefully and don't move the mouse afterwards, the selection will not be cleared. 3.3 This makes the selection almost unusable, hence the bug report. It is not realistic to expect the user to not make any mouse movement after the selection. Video recording: https://github.com/microsoft/vscode/assets/10082143/97e0da02-2486-4878-80ee-1510b40432f4

Impact:

Disclaimer:

  • I'm still new to this stuff, so my understanding and diagnosis above might not be fully accurate.

贡献者指南