microsoft / microsoft/vscode

Test Explorer: holding Alt to switch the run gutter/tree icon to "Debug Test" behaves inconsistently in auxiliary windows

Open
#333,503 2 comments 0 reactions 1 assignee Claimed by @connor4312 View on GitHub
bug testing
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.118.0
- OS Version: Windows_NT x64 10.0.26200

Steps to Reproduce:
1. Open a workspace containing tests so the Test Explorer / gutter run icons are visible.
2. In the main window, press and hold Alt. The run icon changes to the "Debug Test" icon, and releasing/pressing Alt again toggles it reliably every time.
3. Move the editor (or Test Explorer view) into a separate/floating window (Move Editor into New Window).
4. Press and hold Alt there. The icon toggles exactly once.
5. Release Alt — the separate window loses focus.
6. Press Alt again: the icon no longer changes in that window.

Expected Behavior
The Alt modifier should toggle the run/debug icon consistently in auxiliary windows, the same way it does in the main window, and pressing Alt should not cause the window to lose focus. (If losing focus on Alt is unavoidable because Alt activates the OS/window menu, then Alt may not be a suitable modifier for this action — an alternative modifier or a configurable one would be preferable.)

Actual Behavior
In a separate window the Alt toggle works only once; afterwards the window loses focus on key release and further Alt presses have no effect on the icon.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.