Skip to content

Browser API optimizations#303321

Merged
kycutler merged 3 commits intomainfrom
kycutler/browserapiperf
Mar 19, 2026
Merged

Browser API optimizations#303321
kycutler merged 3 commits intomainfrom
kycutler/browserapiperf

Conversation

@kycutler
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 21:56
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 optimizes the proposed “browser” extension API plumbing (workbench ⇄ ext host) by reducing payload size and avoiding redundant RPC notifications when tracking browser editor tabs.

Changes:

  • Change the “active browser tab changed” callback to send only the tab id (instead of a full DTO) and only when the id actually changes.
  • Change the “browser tab state changed” callback to send only the DTO (dropping the redundant id parameter).
  • Update the ext host protocol definitions accordingly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/api/common/extHostBrowsers.ts Adapts ext host-side tab tracking callbacks to new signatures (but needs signature alignment for undefined).
src/vs/workbench/api/common/extHost.protocol.ts Updates the RPC contract for active-tab and state-change notifications.
src/vs/workbench/api/browser/mainThreadBrowsers.ts Sends fewer active-tab change RPCs and simplifies tab state change notifications.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kycutler kycutler marked this pull request as draft March 19, 2026 22:04
@kycutler kycutler marked this pull request as ready for review March 19, 2026 22:56
@kycutler kycutler enabled auto-merge (squash) March 19, 2026 22:56
@kycutler kycutler merged commit c52ead6 into main Mar 19, 2026
19 checks passed
@kycutler kycutler deleted the kycutler/browserapiperf branch March 19, 2026 23:38
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