-
Notifications
You must be signed in to change notification settings - Fork 35.7k
Enable a tooltip in quick pick #174417
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
Enable a tooltip in quick pick #174417
Conversation
| if (!element.element || !element.saneTooltip) { | ||
| return; | ||
| } | ||
| this._lastHover = this.options.hoverDelegate.showHover({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IHoverOptions.id is available now on main
| return this.hoverService.showHover({ | ||
| ...options, | ||
| hideOnHover: false, | ||
| hideOnKeyDown: false, | ||
| skipFadeInAnimation: true, | ||
| }, focus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also breaks the equality check, but id would fix it
* hover in quickpick * refactoring * fix tests * remove HTMLElement from API for now * API proposal
| case KeyCode.Space: | ||
| if (event.ctrlKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TylerLeonhardt there's a couple of potential issues with this solution regarding keyboard accessibility.
In order to be discoverable, this should either be conveyed to the user through markup (as in, "has tooltip, press [ .. ] to activate". or at least be a well-known key combination across users (such as Shift+F1).
Additionally note that Ctrl is actually the key that's commonly used to dismiss tooltips rather than summon them in many Windows applications and is preferred by many keyboard users due to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should be resolved somehow in #175662
This PR introduces an ability for a Core feature to provide a tooltip for a QuickPickItem.
ctrl+spaceto toggle the tooltip or hover over an item with your mouse to show the hoverFixes #174473