Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Show error" hover persists across multiple files with Editor > Hover: Enabled unchecked #238154

Closed
perdomon opened this issue Jan 17, 2025 · 3 comments
Assignees

Comments

@perdomon
Copy link

perdomon commented Jan 17, 2025

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

  • VS Code Version: 1.96.4 (Universal)
  • OS Version: Sequoia 15.1.1

Steps to Reproduce:

  1. Disable hover (Settings -> uncheck Editor> Hover: Enabled
  2. Find an orange or red underlined code error, and use the keyboard shortcut to show more info CMD+K, CMD+I
  3. Try to close the hover with the escape key
  4. Try to close the hover by navigating to another file tab

The only way to close the hover is to select it with the mouse or same keyboard shortcut, then press escape.

Expected behavior: The hover should disappear when the cursor moves, the tab changes, or the escape button is pressed. This behavior should be independent of the status of Hover: Enabled.

Below, the hover appears as intended when the key combination is pressed (CMD+K, CMD+i; or g h in Vim mode). This occurs regardless of the status of the Hover: Enabled setting:
Image

The hover no longer disappears when pressing ESC, moving the cursor, or changing files. Here, you can see a Dart-related hover superimposed over a JSON file:
Image

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.4. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@perdomon
Copy link
Author

@vs-code-engineering I've updated my software, disabled all extensions, and confirmed that the issue still exists. I edited my original post to reflect the new version number.

@aiday-mar
Copy link
Contributor

Hi thank you for filing this issue. This issue should already be fixed in the nightly insiders version, and will be shipped at the end of january/beginning of february.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants