Repository navigation
multiDiffEditor: resize all diffs together by default - #350402
Open
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
Open
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
Conversation
Enable `multiDiffEditor.syncSplitView` by default, so resizing the split of one file in a multi diff editor resizes all files. The unsynced split view ratio test now opts out explicitly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Benjamin Christopher Simmonds (benibenj)
November 25, 2026 15:41
Federico Brancasi (federicobrancasi)
approved these changes
Nov 25, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change enabling synchronized split resizing by default.
No open issues 🎉
What changed in this PR
Following #350132, this PR enables synchronized split resizing by default in multi-file diff editors. Users can still disable it through Resize All Diffs Together or the setting.
Changes:
- Sets
multiDiffEditor.syncSplitViewto default totrue. - Aligns the widget’s fallback with the new default.
- Explicitly disables synchronization in the test covering per-file split ratios.
| File | Description |
|---|---|
src/vs/editor/test/browser/widget/multiDiffEditorWidget.test.ts |
Keeps the recycled-template test in unsynchronized mode. |
src/vs/editor/common/config/editorConfigurationSchema.ts |
Enables synchronized resizing by default. |
src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.ts |
Updates the widget fallback to match the setting default. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #350132, which added the Resize All Diffs Together option for multi diff editors.
This enables
multiDiffEditor.syncSplitViewby default, so dragging the split between the original and modified side of one file resizes the split of every file in the multi diff editor. Users can still turn it off from the editor title overflow menu (Resize All Diffs Together) or the setting.editorConfigurationSchema.ts: setting defaultfalse→true.multiDiffEditorWidgetImpl.ts: the widget's fallback value matches the new default.multiDiffEditorWidget.test.ts: the test for per-file split ratios with recycled templates now sets the setting tofalseexplicitly, since it covers the unsynced mode.How to test
...menu. Resizing one file no longer affects the others.Validation
./scripts/test.sh --reporter dot --run src/vs/editor/test/browser/widget/multiDiffEditorWidget.test.ts --run src/vs/sessions/contrib/changes/test/browser/changesViewActions.test.ts: passed (62 tests).pnpm run oxlinton the changed files: passed.