Skip to content

Rework titlebar item to use View > Browser command#312440

Merged
kycutler merged 1 commit intomainfrom
kycutler/refactoropen
Apr 24, 2026
Merged

Rework titlebar item to use View > Browser command#312440
kycutler merged 1 commit intomainfrom
kycutler/refactoropen

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

No description provided.

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 21:46
@kycutler kycutler self-assigned this Apr 24, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jruales

Matched files:

  • src/vs/platform/browserView/common/browserView.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts

@kycutler kycutler enabled auto-merge (squash) April 24, 2026 21:46
Copy link
Copy Markdown
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 reworks the Integrated Browser titlebar entry so it uses the same command as the View > Browser menu item, centralizing the “open vs list tabs” behavior behind a single command ID.

Changes:

  • Introduces workbench.action.browser.openOrList and routes both the View menu and titlebar button through it.
  • Removes the previous separate titlebar menu contributions for “Open Integrated Browser” vs “Quick Open Browser Tab…”.
  • Updates the quick pick placeholder to no longer suggest URL entry.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Adds the new Open-or-List action, wires it into titlebar + View menu, and removes the prior titlebar-only entries.
src/vs/platform/browserView/common/browserView.ts Adds the new BrowserViewCommandId.OpenOrList command ID.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment on lines +406 to +411
class OpenOrListBrowsersAction extends Action2 {
constructor() {
super({
id: OpenBrowserFromViewMenuAction.ID,
title: localize2('browser.openFromViewMenuAction', "Browser"),
id: BrowserViewCommandId.OpenOrList,
title: localize2('browser.openOrListAction', "Browser"),
icon: Codicon.globe,
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

OpenOrListBrowsersAction is named in the plural, but the command/title is singular ("Browser") and the action is effectively "open browser" or "list tabs". Consider renaming the class (and any related identifiers) to a singular form to better match behavior and reduce confusion when searching for the action.

Copilot generated this review using guidance from repository custom instructions.
@kycutler kycutler merged commit 52368ad into main Apr 24, 2026
30 checks passed
@kycutler kycutler deleted the kycutler/refactoropen branch April 24, 2026 22:08
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 2026
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.

3 participants