Skip to content

Browser: update suggestions dynamically as tabs change#319654

Merged
kycutler merged 2 commits into
mainfrom
kycutler/suggestionpersistence
Jun 2, 2026
Merged

Browser: update suggestions dynamically as tabs change#319654
kycutler merged 2 commits into
mainfrom
kycutler/suggestionpersistence

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

@kycutler kycutler commented Jun 2, 2026

Fixes #319276

Copilot AI review requested due to automatic review settings June 2, 2026 22:26
@kycutler kycutler self-assigned this Jun 2, 2026
@kycutler kycutler enabled auto-merge (squash) June 2, 2026 22:26
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering Bot commented Jun 2, 2026

📬 CODENOTIFY

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

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts

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 fixes stale “Open Tabs” URL-bar suggestions in the Integrated Browser by making tab suggestions update dynamically when editor groups/tabs change, preventing users from selecting a suggestion that no longer exists (issue #319276).

Changes:

  • Refactored URL picker suggestion loading to cache per-provider results and refresh providers independently while the picker is open.
  • Added live onDidChange signaling for the “Open Tabs” suggestion provider so tab additions/removals/renames and group changes reflow the suggestions list in real time.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts Reworks picker suggestion rendering to support per-provider refresh and stable re-rendering while the picker is open.
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Makes the “Open Tabs” URL suggestion provider emit onDidChange on tab/group/label changes and orders suggestions by group visibility.

Copilot's findings

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

@kaspiajahannor-cmd
Copy link
Copy Markdown

My old Google account data recovery

mjbvz
mjbvz previously approved these changes Jun 2, 2026
@kycutler kycutler merged commit 7d90332 into main Jun 2, 2026
25 checks passed
@kycutler kycutler deleted the kycutler/suggestionpersistence branch June 2, 2026 23:29
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 2, 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.

Browser suggestions bar: switching to tab that is already closed closes the window

5 participants