Repository navigation
Show keybinding in Toggle Search Details tooltip - #311859
Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits intoJul 29, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
Conversation
The Toggle Search Details button's hover tooltip showed a static label, unlike other search view buttons that use keybindingService.appendKeybinding(label, commandId) to surface the configured shortcut (see appendSearchWithAIButton at line 1741 and appendSearchInOpenedEditorsMessage at line 2043 in the same file). Use the same pattern so the button's tooltip reflects workbench.action.search.toggleQueryDetails (Ctrl+Shift+J by default). Fixes microsoft#131484
Osvaldo Ortega (osortega)
approved these changes
May 15, 2026
TylerLeonhardt
approved these changes
May 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the configured keybinding to the “Toggle Search Details” tooltip.
Changes:
- Uses
appendKeybindingto display the active default or custom shortcut.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/search/browser/searchView.ts |
Appends the toggle command’s keybinding to its hover label. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Medium
Dmitriy Vasyura (dmitrivMS)
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The "Toggle Search Details" button in the search view shows a tooltip but does not include the configured keybinding — even though the command
workbench.action.search.toggleQueryDetailshasCtrl+Shift+Jbound by default.Fix
Use
keybindingService.appendKeybinding(label, commandId)on the hover label, matching the pattern already used in the same file for:appendSearchWithAIButton(line 1741)appendSearchInOpenedEditorsMessage(line 2043)One-line change, single file.
Test plan
Fixes #131484