Skip to content

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Dec 28, 2025

Image

Input is a bit of a beast because of plumbing so I'm saving that for later.

This does two major things:

  • replaces ActionBar usage with ToolBar (minus a few property renames I'm saving for another PR so this one isn't so big)
  • Adds a label and secondary property to QuickInputButtons to allow the overflow for particular buttons

Fixes #285213 (mostly, will create a new issue for input location when this goes in)

Input is a bit of a beast because of plumbing so I'm saving that for later.

Fixes #285213
Copilot AI review requested due to automatic review settings December 28, 2025 02:43
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) December 28, 2025 02:43
@TylerLeonhardt TylerLeonhardt self-assigned this Dec 28, 2025
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables secondary (overflow) buttons in QuickInput components by migrating from ActionBar to ToolBar and adding support for button labels and secondary placement.

Key Changes:

  • Replaces ActionBar with ToolBar across QuickInput components (except Input location which is deferred)
  • Adds label and secondary properties to IQuickInputButton interface for overflow menu support
  • Introduces quickInputButtonsToActionArrays utility to separate primary and secondary actions

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/platform/quickinput/common/quickInput.ts Adds label and secondary properties to IQuickInputButton interface with clear documentation
src/vs/platform/quickinput/browser/quickInputUtils.ts Refactors QuickInputToggleButtonAction to use proper method for run() and adds quickInputButtonsToActionArrays helper function
src/vs/platform/quickinput/test/browser/quickInputUtils.test.ts Comprehensive test suite for quickInputButtonToAction and quickInputButtonsToActionArrays functions
src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.ts Migrates from ActionBar to ToolBar, updates to use quickInputButtonsToActionArrays for button rendering
src/vs/platform/quickinput/browser/quickInputList.ts Migrates from ActionBar to ToolBar in both item and separator renderers, adds IContextMenuService dependency injection
src/vs/platform/quickinput/browser/quickInputController.ts Migrates left, right, and inline action bars from ActionBar to ToolBar, updates enabled state iteration logic
src/vs/platform/quickinput/browser/quickInput.ts Updates button handling to use quickInputButtonsToActionArrays for all three button locations (left, right, inline)
src/vs/platform/quickinput/browser/media/quickInput.css Updates CSS selectors from child (>) to descendant (space) to accommodate ToolBar's additional wrapper element

@TylerLeonhardt TylerLeonhardt merged commit d878ca9 into main Dec 28, 2025
33 of 34 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/exact-cat branch December 28, 2025 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow overflow buttons in quick input

3 participants