Skip to content

Browser: refactor navbar / welcome page to feature contributions#318765

Merged
kycutler merged 2 commits into
mainfrom
kycutler/navbarcontrib
May 28, 2026
Merged

Browser: refactor navbar / welcome page to feature contributions#318765
kycutler merged 2 commits into
mainfrom
kycutler/navbarcontrib

Conversation

@kycutler

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2026 15:27
@kycutler kycutler self-assigned this May 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors the Integrated Browser editor UI by moving the navigation bar and welcome/empty-state UI into BrowserEditorContributions, and consolidates browser-related actions/context into the editor/contributions rather than a standalone browserViewActions.ts.

Changes:

  • Introduces BrowserNavigationFeatures (navbar widget + navigation actions) and BrowserWelcomeFeature (welcome placeholder) as editor contributions.
  • Updates BrowserEditorContribution focus handling from focusPage() to tryFocus() with a “first contribution wins” model, and adds prerenderInput() to render placeholder UI before the model resolves.
  • Removes browserViewActions.ts and shifts action/category/group exports to browserEditor.ts, updating feature imports accordingly.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/features/webContentsViewRendererFeature.ts Adopts new tryFocus() API and removes per-feature focus notification wiring.
src/vs/workbench/contrib/browserView/electron-browser/features/browserWelcomeFeature.ts New contribution that renders/hides the welcome placeholder based on URL presence.
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Updates imports to use action/category/group exports from browserEditor.ts.
src/vs/workbench/contrib/browserView/electron-browser/features/browserNavigationFeatures.ts New contribution that owns the navbar widget, navigation context keys, and browser navigation-related actions.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorZoomFeature.ts Updates imports to use action/category/group exports from browserEditor.ts.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorFindFeature.ts Updates imports to use action/category/group exports from browserEditor.ts.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorErrorFeatures.ts Removes per-contribution browserHasError context-key binding; updates behavior to call model APIs directly.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorEmulationFeatures.ts Updates imports to use action/category/group exports from browserEditor.ts.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorChatFeatures.ts Updates imports to use action/category/group exports from browserEditor.ts.
src/vs/workbench/contrib/browserView/electron-browser/features/browserDevToolsFeature.ts Updates imports and routes devtools toggle via model API.
src/vs/workbench/contrib/browserView/electron-browser/features/browserDataStorageFeatures.ts Updates imports and routes storage clearing via model API.
src/vs/workbench/contrib/browserView/electron-browser/browserViewActions.ts Removed; actions and related exports are relocated.
src/vs/workbench/contrib/browserView/electron-browser/browserView.contribution.ts Wires new feature modules and drops browserViewActions import.
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Moves action/category/group exports here; introduces tryFocus()/prerenderInput() contribution APIs and refactors editor focus/model wiring.

Copilot's findings

  • Files reviewed: 14/14 changed files
  • Comments generated: 4

@kycutler kycutler marked this pull request as ready for review May 28, 2026 15:52
@kycutler kycutler enabled auto-merge (squash) May 28, 2026 15:52
@vs-code-engineering

vs-code-engineering Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts
  • src/vs/workbench/contrib/browserView/electron-browser/browserView.contribution.ts
  • src/vs/workbench/contrib/browserView/electron-browser/browserViewActions.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserDataStorageFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserDevToolsFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorChatFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorEmulationFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorErrorFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorFindFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorZoomFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserNavigationFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserWelcomeFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/webContentsViewRendererFeature.ts

@kycutler kycutler merged commit 1527d75 into main May 28, 2026
25 checks passed
@kycutler kycutler deleted the kycutler/navbarcontrib branch May 28, 2026 16:25
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 28, 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