sessions: hide "Enter to Apply" tooltip in workspace picker#313826
Merged
Conversation
The shared ActionList renderer falls back to a "{keybinding} to Apply"
tooltip when an item has no explicit tooltip/hover. That hint is misleading
in the session workspace picker, where items aren't code actions.
Add a new IActionListOptions.hideDefaultKeybindingTooltip flag and opt the
session workspace picker into it (for both the flat and tabbed
presentations).
(Written by Copilot)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
zhichli
approved these changes
May 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refines ActionList UX for the Agents window workspace picker by preventing the generic "{keybinding} to Apply" fallback tooltip from appearing on list rows where it’s misleading (e.g., “Enter to Apply” on every workspace row).
Changes:
- Introduces
IActionListOptions.hideDefaultKeybindingTooltipto suppress the default keybinding-based tooltip when no explicit tooltip/hover is provided. - Wires the workspace picker (flat + tabbed variants) to enable the new flag.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/contrib/chat/browser/sessionWorkspacePicker.ts | Enables hideDefaultKeybindingTooltip for both flat and tabbed workspace picker list options. |
| src/vs/platform/actionWidget/browser/actionList.ts | Adds the new options flag and plumbs it into ActionItemRenderer tooltip fallback behavior. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 2
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The shared
ActionListrenderer falls back to a"{keybinding} to Apply"tooltip on every item that has no explicittooltipand nohover. That hint is appropriate for code-action menus but misleading in the session workspace picker, where every row was showing "Enter to Apply".Changes
IActionListOptions.hideDefaultKeybindingTooltipflag. When set,ActionItemRendererskips the default keybinding-based tooltip on items without an explicit tooltip/hover._buildListOptions)listOptionsin_showTabbedPicker)Notes for reviewers
Behavior of existing
ActionListconsumers (e.g. code action / lightbulb menus) is unchanged — they don't set the new flag.(Written by Copilot)