Skip to content

Sessions - extract more logic from the view pane#307911

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/used-gerbil
Apr 5, 2026
Merged

Sessions - extract more logic from the view pane#307911
lszomoru merged 1 commit intomainfrom
lszomoru/used-gerbil

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 5, 2026 19:27
@lszomoru lszomoru enabled auto-merge (squash) April 5, 2026 19:27
@lszomoru lszomoru self-assigned this Apr 5, 2026
@lszomoru lszomoru added this to the 1.115.0 milestone Apr 5, 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

Refactors the Sessions “Changes” view (vs/sessions layer) to move more reactive toolbar/button logic out of ChangesViewPane and into a dedicated widget, reducing view-pane responsibility.

Changes:

  • Reworks ChangesButtonBarWidget to be a Disposable that internally derives outgoing-change counts and code-review state.
  • Introduces a structurally-equal derived observable for review button state (isLoading + commentCount) to avoid unnecessary churn.
  • Removes direct ICodeReviewService usage from ChangesViewPane by relocating code review UI state computation.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/changesView.ts Extracts/re-homes toolbar state derivations into ChangesButtonBarWidget and simplifies ChangesViewPane wiring.

Copilot's findings

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

@lszomoru lszomoru merged commit 36c2be7 into main Apr 5, 2026
23 checks passed
@lszomoru lszomoru deleted the lszomoru/used-gerbil branch April 5, 2026 21:17
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