Skip to content

chat: open Working Set files in regular editors - #344477

Merged
Justin Chen (justschen) merged 3 commits into
mainfrom
agents/disable-diff-view-on-file-click
Oct 27, 2026
Merged

Justin Chen (justschen) merged 3 commits into
mainfrom
agents/disable-diff-view-on-file-click

Conversation

@justschen

Copy link
Copy Markdown
Collaborator

Summary

  • Open Working Set rows in regular file editors, matching the local harness behavior.
  • Keep diffs behind the explicit Open Changes in Diff Editor and View All Edits actions.
  • Open the recorded original when activating a deleted file, and update accessibility help and regression coverage.

Testing

  • npm run build-fast -- --client-only — passed
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/widget/input/chatSessionWorkingSet.test.ts --run src/vs/workbench/contrib/chat/test/browser/accessibility/chatAccessibilityHelp.test.ts — 122 passed
  • npm run eslint -- src/vs/workbench/contrib/chat/browser/widget/input/chatSessionWorkingSet.ts src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.ts src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts src/vs/workbench/contrib/chat/test/browser/widget/input/chatSessionWorkingSet.test.ts src/vs/workbench/contrib/chat/test/browser/accessibility/chatAccessibilityHelp.test.ts — passed
  • git diff --check — passed

To verify manually, click a file row in the Working Set and confirm it opens in a regular editor, then use the row's diff button and confirm it opens the diff editor.

Copilot AI balanced review requested due to automatic review settings October 27, 2026 01:41
@justschen Justin Chen (justschen) added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label Oct 27, 2026
@osortega
Osvaldo Ortega (osortega) marked this pull request as ready for review October 27, 2026 01:42
@vs-code-engineering

Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.144 when merged.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change matches the stated intent, preserves explicit diff actions, and includes corresponding regression coverage with no unresolved findings.

No open issues 🎉

What changed in this PR

This PR changes chat Working Set row activation to open regular editors, while keeping diff review available through explicit actions.

Changes:

  • Open changed and created files normally, and deleted files from their recorded originals.
  • Preserve Open Changes in Diff Editor and View All Edits for diff review.
  • Update accessibility guidance and regression tests for regular-editor behavior, focus, and pinning.

No actionable findings remain.

File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​chatSessionWorkingSet.test.ts Updates coverage for row activation, deleted files, focus, pinning, and explicit diff actions.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​accessibility/​chatAccessibilityHelp.test.ts Checks the updated regular-editor guidance.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​chatSessionWorkingSet.ts Opens rows in regular editors, using original snapshots for deleted files.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatChangesSummaryPart.ts Clarifies the row-opening callback comment; no functional change.
src/​vs/​workbench/​contrib/​chat/​browser/​actions/​chatAccessibilityHelp.ts Describes regular-editor activation and removes obsolete preference guidance.

Review effort: Balanced

@justschen
Justin Chen (justschen) marked this pull request as draft October 27, 2026 01:51
@justschen
Justin Chen (justschen) enabled auto-merge (squash) October 27, 2026 02:47
@justschen
Justin Chen (justschen) merged commit d0adb05 into main Oct 27, 2026
51 checks passed
@justschen
Justin Chen (justschen) deleted the agents/disable-diff-view-on-file-click branch October 27, 2026 02:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 27, 2026
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants