Skip to content

Agents - add support for "Discard Changes" in "Uncommitted Changes"#313530

Merged
lszomoru merged 1 commit into
mainfrom
lszomoru/technological-whippet
Apr 30, 2026
Merged

Agents - add support for "Discard Changes" in "Uncommitted Changes"#313530
lszomoru merged 1 commit into
mainfrom
lszomoru/technological-whippet

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

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

Adds support for showing and updating the “Discard Changes” action when the Changes view is in Uncommitted Changes mode in the Agents (sessions) window.

Changes:

  • Makes the uncommitted-changes diff observable re-run when the uncommitted change count updates.
  • Updates the Copilot menu when clause so “Discard Changes” is available in both branchChanges and uncommittedChanges modes.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/changesViewModel.ts Adds an observable dependency on uncommitted-change count so the uncommitted diff recomputes when that count changes.
extensions/copilot/package.json Expands the toolbar visibility condition for github.copilot.sessions.discardChanges to include uncommittedChanges mode.

Copilot's findings

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

@lszomoru lszomoru merged commit b43191a into main Apr 30, 2026
44 of 45 checks passed
@lszomoru lszomoru deleted the lszomoru/technological-whippet branch April 30, 2026 18:01
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