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

Problems with quick info hint in 1.96+ #239664

Open
borodinalive opened this issue Feb 5, 2025 · 8 comments
Open

Problems with quick info hint in 1.96+ #239664

borodinalive opened this issue Feb 5, 2025 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-hover Editor mouse hover info-needed Issue requires more information from poster

Comments

@borodinalive
Copy link

borodinalive commented Feb 5, 2025

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

  • VS Code Version: 1.96+
  • OS Version: Ubuntu 20.04 (Gnome 3.36), Ubuntu 24.04 (Gnome 46)

Steps to Reproduce:
Prerequisite: Text Editor > Hover: Enabled is disabled in the settings

When calling a hint with quick information (CTRL+Q with Intellij Keybindings, or CTRL+K CTRL+I), it used to be possible to press ESC immediately to hide the hint. In versions older than 1.95.3, you must first select this prompt with the mouse, after which you can hide it by ESC.

The latest version where this problem does not exist is 1.95.3.

If you enable Text Editor > Hover: Enabled, the function works as expected: the hint is displayed in manual mode and it is hidden by ESC.

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!

@borodinalive borodinalive changed the title Problems with quick info tooltip in 1.96+ Problems with quick info hint in 1.96+ Feb 5, 2025
@aiday-mar aiday-mar assigned jrieken and unassigned aiday-mar Feb 5, 2025
@jrieken jrieken added the info-needed Issue requires more information from poster label Feb 5, 2025
@jrieken
Copy link
Member

jrieken commented Feb 5, 2025

This works for me, what get's printed when you do "F1 > Toggle Keyboard Shortcuts Troubleshooting"

@borodinalive
Copy link
Author

This works for me, what get's printed when you do "F1 > Toggle Keyboard Shortcuts Troubleshooting"

I'm not sure what you were trying to say with that.
In output console I have:

025-02-05 14:06:17.695 [info] [KeybindingService]: / Received keydown event - modifiers: [], code: F1, keyCode: 112, key: F1
2025-02-05 14:06:17.696 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: F1, keyCode: 59 ('F1')
2025-02-05 14:06:17.696 [info] [KeybindingService]: | Resolving [F1]
2025-02-05 14:06:17.696 [info] [KeybindingService]: \ From 1 keybinding entries, matched workbench.action.showCommands, when: no when condition, source: built-in.
2025-02-05 14:06:17.696 [info] [KeybindingService]: + Invoking command workbench.action.showCommands.

Apart from that, nothing else happens.

@jrieken
Copy link
Member

jrieken commented Feb 5, 2025

What is printed in that troubleshooting view when you hit Esc in the expectation that the hover hides

@borodinalive
Copy link
Author

2025-02-05 15:11:39.358 [info] [KeybindingService]: + Entering multi-chord mode...
2025-02-05 15:11:39.607 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: KeyI, keyCode: 73, key: i
2025-02-05 15:11:39.608 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyI, keyCode: 39 ('I')
2025-02-05 15:11:39.608 [info] [KeybindingService]: | Resolving ctrl+[KeyK],ctrl+[KeyI]
2025-02-05 15:11:39.608 [info] [KeybindingService]: \ From 4 keybinding entries, matched editor.action.showHover, when: editorTextFocus, source: built-in.
2025-02-05 15:11:39.609 [info] [KeybindingService]: + Invoking command editor.action.showHover.
2025-02-05 15:11:39.899 [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.
2025-02-05 15:11:45.397 [info] [KeybindingService]: / Received keydown event - modifiers: [], code: Escape, keyCode: 27, key: Escape
2025-02-05 15:11:45.436 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Escape, keyCode: 9 ('Escape')
2025-02-05 15:11:45.436 [info] [KeybindingService]: | Resolving [Escape]
2025-02-05 15:11:45.436 [info] [KeybindingService]: \ From 70 keybinding entries, no when clauses matched the context.

@jrieken
Copy link
Member

jrieken commented Feb 5, 2025

\ From 70 keybinding entries, no when clauses matched the context.

Looks like no command is available when pressing ESC. Please try with an empty profile (F1 > New Profile)

@borodinalive
Copy link
Author

This was with empty profile


this is log from 1.95.3:

2025-02-05 16:22:05.817 [info] [KeybindingService]: / Soft dispatching keyboard event
2025-02-05 16:22:05.818 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2025-02-05 16:22:05.818 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2025-02-05 16:22:05.818 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2025-02-05 16:22:05.818 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2025-02-05 16:22:06.181 [info] [KeybindingService]: / Soft dispatching keyboard event
2025-02-05 16:22:06.181 [info] [KeybindingService]: | Resolving ctrl+[KeyQ]
2025-02-05 16:22:06.181 [info] [KeybindingService]: \ From 2 keybinding entries, matched editor.action.showHover, when: editorTextFocus, source: user extension k--kato.intellij-idea-keybindings.
2025-02-05 16:22:06.181 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: KeyQ, keyCode: 81, key: q
2025-02-05 16:22:06.182 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyQ, keyCode: 47 ('Q')
2025-02-05 16:22:06.182 [info] [KeybindingService]: | Resolving ctrl+[KeyQ]
2025-02-05 16:22:06.182 [info] [KeybindingService]: \ From 2 keybinding entries, matched editor.action.showHover, when: editorTextFocus, source: user extension k--kato.intellij-idea-keybindings.
2025-02-05 16:22:06.182 [info] [KeybindingService]: + Invoking command editor.action.showHover.
2025-02-05 16:22:06.282 [info] [KeybindingService]: + Storing single modifier for possible chord ctrl.
2025-02-05 16:22:06.283 [info] [KeybindingService]: + Clearing single modifier due to other key up.
2025-02-05 16:22:08.402 [info] [KeybindingService]: / Soft dispatching keyboard event
2025-02-05 16:22:08.402 [info] [KeybindingService]: | Resolving [Escape]
2025-02-05 16:22:08.402 [info] [KeybindingService]: \ From 69 keybinding entries, no when clauses matched the context.
2025-02-05 16:22:08.403 [info] [KeybindingService]: / Received keydown event - modifiers: [], code: Escape, keyCode: 27, key: Escape
2025-02-05 16:22:08.403 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Escape, keyCode: 9 ('Escape')
2025-02-05 16:22:08.403 [info] [KeybindingService]: | Resolving [Escape]
2025-02-05 16:22:08.403 [info] [KeybindingService]: \ From 69 keybinding entries, no when clauses matched the context.

The key difference is in

2025-02-05 16:22:08.402 [info] [KeybindingService]: / Soft dispatching keyboard event

@jrieken jrieken assigned aiday-mar and unassigned jrieken Feb 5, 2025
@jrieken
Copy link
Member

jrieken commented Feb 5, 2025

@aiday-mar I give this back to you. Seems to be something special with the hover

@aiday-mar aiday-mar added editor-hover Editor mouse hover bug Issue identified by VS Code Team member as probable bug labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-hover Editor mouse hover info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants