Skip to content

Agents - update list of files in the multi-file diff editor#312112

Merged
lszomoru merged 2 commits intomainfrom
lszomoru/sparkling-pig
Apr 23, 2026
Merged

Agents - update list of files in the multi-file diff editor#312112
lszomoru merged 2 commits intomainfrom
lszomoru/sparkling-pig

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 10:39
@lszomoru lszomoru enabled auto-merge (squash) April 23, 2026 10:39
@lszomoru lszomoru self-assigned this Apr 23, 2026
@lszomoru lszomoru added this to the 1.118.0 milestone Apr 23, 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 updates the Agents “Changes” experience to open a multi-diff editor backed by a reactive multi-diff source so the file list can update as the active session’s changes update, instead of passing a static resources array at open time.

Changes:

  • Switches the Changes view to open the multi-diff editor via IEditorService.openEditor({ multiDiffSource, ... }) and passes reveal navigation via IMultiDiffEditorOptions.viewState.
  • Adds a ChangesMultiDiffSourceResolver that resolves the resource list from the active session changes and sorts them for the multi-diff editor.
  • Registers the new resolver contribution during workbench startup.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/changesView.ts Opens the multi-diff editor using a multi-diff source URI and provides reveal options.
src/vs/sessions/contrib/changes/browser/changesMultiDiffSourceResolver.ts Introduces a sessions-specific multi-diff source URI + resolver that supplies/updates the resource list.
src/vs/sessions/contrib/changes/browser/changes.contribution.ts Registers the resolver contribution so the source can be resolved at runtime.

Copilot's findings

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

Comment thread src/vs/sessions/contrib/changes/browser/changesView.ts
Comment thread src/vs/sessions/contrib/changes/browser/changesMultiDiffSourceResolver.ts Outdated
Comment thread src/vs/sessions/contrib/changes/browser/changesMultiDiffSourceResolver.ts Outdated
@lszomoru lszomoru disabled auto-merge April 23, 2026 10:46
@lszomoru lszomoru enabled auto-merge (squash) April 23, 2026 11:00
@lszomoru lszomoru merged commit 18b4d8d into main Apr 23, 2026
26 checks passed
@lszomoru lszomoru deleted the lszomoru/sparkling-pig branch April 23, 2026 11:19
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