Skip to content

Browser: support URL suggestions#318994

Merged
kycutler merged 3 commits into
mainfrom
kycutler/suggestionsbar
May 29, 2026
Merged

Browser: support URL suggestions#318994
kycutler merged 3 commits into
mainfrom
kycutler/suggestionsbar

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

@kycutler kycutler commented May 29, 2026

image (bookmarks not in this PR)

Copilot AI review requested due to automatic review settings May 29, 2026 15:52
@kycutler kycutler self-assigned this May 29, 2026
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 upgrades the Integrated Browser URL bar to support suggestion-driven workflows by introducing a dedicated URL bar widget that uses Quick Pick as the editing surface and can aggregate suggestions/actions from browser editor contributions.

Changes:

  • Add BrowserUrlBarWidget (contenteditable display + Quick Pick overlay) with support for URL renderers, suggestion providers, and picker chrome actions.
  • Contribute “Open Tabs” URL-bar suggestions to enable switching/replacing the current tab from the URL picker.
  • Add onWillNavigate to the browser model to enable optimistic URL preview, plus CSS + a new electron-browser widget test suite.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/test/electron-browser/widgets/browserUrlBarWidget.test.ts New unit tests covering URL bar rendering/editing, suggestion application, picker actions, and focus/hide behavior.
src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts New URL bar widget implementation: display rendering, picker lifecycle, provider suggestion loading, and action wiring.
src/vs/workbench/contrib/browserView/electron-browser/media/browser.css Update styling for the new .browser-url-display (contenteditable + placeholder via :empty::before) and focus border behavior.
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Add a URL suggestion provider that surfaces other open browser tabs as URL-bar suggestions.
src/vs/workbench/contrib/browserView/electron-browser/features/browserNavigationFeatures.ts Replace inline URL input/display logic with BrowserUrlBarWidget, auto-open picker on empty/new tabs, and wire preview via onWillNavigate.
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Extend contribution surface with suggestion/action provider APIs and pin/focus behavior on onWillNavigate.
src/vs/workbench/contrib/browserView/common/browserView.ts Add onWillNavigate event and fire it from loadURL to support pre-navigation UI updates.

Copilot's findings

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

@kycutler kycutler marked this pull request as ready for review May 29, 2026 16:33
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering Bot commented May 29, 2026

📬 CODENOTIFY

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

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/common/browserView.ts
  • src/vs/workbench/contrib/browserView/electron-browser/browserEditor.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/media/browser.css
  • src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts
  • src/vs/workbench/contrib/browserView/test/electron-browser/widgets/browserUrlBarWidget.test.ts

@kycutler kycutler enabled auto-merge (squash) May 29, 2026 17:18
@kycutler kycutler merged commit 65ba7f2 into main May 29, 2026
39 of 40 checks passed
@kycutler kycutler deleted the kycutler/suggestionsbar branch May 29, 2026 17:38
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 29, 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