vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Add support for multi-file diff editor

Open Igorgro opened this issue 2 years ago • 2 comments

Multi-file diff editor was added in Novemeber update and allows to view multiple diffs in one editor. Currently it allows to view diffs for uncommited and staged changes. It would be awesome if Gitlens added support for this editor for viewing commit changes.

Igorgro avatar Dec 09 '23 19:12 Igorgro

In the pre-release edition of GitLens, set "gitlens.experimental.openChangesInMultiDiffEditor": true and the Open All Changes and Open All Changes with Working Tree commands will use the multi-diff editor (assuming "multiDiffEditor.experimental.enabled": true is also set).

We're working on other changes as well which should land shortly, as well as having separate commands to open the multi-diff vs individual diffs -- the biggest blocker is how to concisely name both options 😄

eamodio avatar Dec 09 '23 21:12 eamodio

Now when you set "gitlens.experimental.openChangesInMultiDiffEditor": true you will see 2 additional options:

image

The Open All Changes and Open All Changes with Working Tree commands will use the multi-diff editor, while the others will use the previous behavior -- opening each file in a new diff editor.

eamodio avatar Jan 04 '24 00:01 eamodio

The setting is now gitlens.views.openChangesInMultiDiffEditor and it is enabled by default.

eamodio avatar Mar 19 '24 15:03 eamodio

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Apr 19 '24 05:04 github-actions[bot]