I use the keyboard shortcut CMD+K, CMD+I to show a hover tooltip in VS Code when it detects errors:
I used to press the escape key to close these hover elements, but that no longer works. They continue to appear even after pressing escape, navigating to a different part of the code, or even navigating to another file tab. Here's a Dart hover window showing over a JSON file:
The only solution I have found is to use my mouse to select the window with a tap, then press the escape key. As a Vim user (I use Vim, btw), I would prefer if I didn't have to use my mouse at all.
How can I restore the power of the escape key to close the hover error tooltip window in VS Code?
I had previously been annoyed by the hover element on my small MacBook screen and disabled it. Re-enabling the hover feature resolved the issue. I'll report the bug to VS Code since disabling the hover shouldn't affect the escape key/window focus.
To enable hover: