"suggestWidget" reappearing after closing with the Esc "Escape" key
- 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/No
Yes
- VS Code Version: 1.135.0
- OS Version: Linux x64 6.8.0-138-generic
Electron: 42.8.1
ElectronBuildId: 14906494
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.81-0
@github/copilot-sdk: 1.0.11
Steps to Reproduce:
1. Open new file. empty unsaved file editor works
2. type "abc", this inserts "abc" to the word suggestions
3. newline, type "a" to open widgetid="editor.widget.suggestWidget" that suggests "abc"
4. press "Escape" key, triggering the default keyboard shortcut "hideSuggestWidget" when "suggestWidgetVisible && textInputFocus". The suggestWidget will disappear as expected.
5. The suggestWidget will reappear. Repeated pressing of "Escape" will never close the widget. <-This is the bug.
6. Type "b" to bring up the suggestWidget, then press "Escape". The suggestWidget will close properly and not reopen.
7. press "Backspace" to erase the "b", then type "b" to bring up the suggestWidget, then press "Escape". The suggestWidget will close and reopen, demonstrating the bug again. This hints that the trigger is not the first letter of a word, but the first letter in a word that is identified to be on the word suggestions list.
Contributor guide
Assessment
This issue has not been assessed yet.