Skip to content

revert #283546#318314

Open
RedCMD wants to merge 1 commit into
microsoft:mainfrom
RedCMD:291982
Open

revert #283546#318314
RedCMD wants to merge 1 commit into
microsoft:mainfrom
RedCMD:291982

Conversation

@RedCMD
Copy link
Copy Markdown
Contributor

@RedCMD RedCMD commented May 26, 2026

fixes #291982

Copilot AI review requested due to automatic review settings May 26, 2026 09:08
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • extensions/git/src/quickDiffProvider.ts
  • src/vs/workbench/contrib/scm/common/quickDiffService.ts

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

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts how “original resources” are derived for quick diff, particularly in diff editor contexts, and adds logic in the Git extension to suppress quick diff on the RHS (modified side) of diff editors.

Changes:

  • Changed getOriginalResource to return the first available quick diff result instead of explicitly selecting the primary provider.
  • Updated diff editor quick diff aggregation to include all quick diff results and changed ordering of returned diff info.
  • Added Git quick-diff provider logic to ignore URIs that are on the modified side of diff/multi-diff editors.

Reviewed changes

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

File Description
src/vs/workbench/contrib/scm/common/quickDiffService.ts Changes selection logic for which “original resource” is returned from quick diff results.
src/vs/workbench/api/browser/mainThreadEditors.ts Adjusts quick diff model URI selection and changes how diff vs quick-diff results are combined/ordered for diff editors.
extensions/git/src/quickDiffProvider.ts Adds suppression of quick diff on the modified side of diff and multi-diff editors.

Comment thread src/vs/workbench/contrib/scm/common/quickDiffService.ts
Comment thread src/vs/workbench/api/browser/mainThreadEditors.ts
Comment thread extensions/git/src/quickDiffProvider.ts
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.

[SCM][regression] Viewing large diff bricks SCM

3 participants