You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this feature consists of two different problems:
Have a custom editor that has IMultiDocumentDiffEditorModel as model (might need Benjamin Pasero (@bpasero)'s help):
interfaceIMultiDocumentDiffEditorModel{diffs: LazyPromise<IDiffEntry>[];onDidChange: Event;}// The lazy promise allows lazy-loading (only load a the original/modified files when they are in view) and streaming (show the diff of the first file already while the other files are loading).// This might be very useful for reviewing github PRs on github.dev.interfaceLazyPromise<T>{request(): Promise<T>;value: T|undefined;onDidChange: Event;}// invariant: assert(original || modified);interfaceIDiffEntry{original: ITextModel|undefined;// undefined if the file was created.modified: ITextModel|undefined;// undefined if the file was deleted.}
There should be a command to open a multi diff editor with a model that represents all changed files. This model should fire an event when the list of changed files changes.
There could be an implementation of IMultiDocumentDiffEditorModel that is mapped to a folder, then extensions could easily invoke this editor
Igor Mahov (@Igorgro) I didn't try it, but it looks like a decent alternative. It seems to create a patch file that you can then view using a different extension. The feature request described in this issue goes much further, as we want to use our diff algorithm and the monaco editor to render the changes. We also want to allow users to modify/revert changes, which is not possible with the patch file approach.
Henning Dieterichs (@hediet) Loving where this is going so far, but I've noticed some issue, but also would love to see additions/changes to the new vscode.changes command. How should I best report those? I didn't see a specific issue for the vscode.changes command.
Activity
7rulnik commentedon Apr 11, 2023
Ladislau Szomoru (@lszomoru) do I understand it correctly that basically, it's a one-long list of diffs like in GitHub PRs?
[-]Workbench - diff list custom editor[/-][+]Support opening a set of changes using a changes editor[/+]jacekkopecky commentedon Aug 6, 2023
Ladislau Szomoru (@lszomoru) do you mean something similar to my extension Whole Diff ?
hediet commentedon Aug 10, 2023
I think this feature consists of two different problems:
IMultiDocumentDiffEditorModelas model (might need Benjamin Pasero (@bpasero)'s help):IMultiDocumentDiffEditorModelthat is mapped to a folder, then extensions could easily invoke this editorIgorgro commentedon Aug 10, 2023
Henning Dieterichs (@hediet) what do you think about extension mentioned above?
hediet commentedon Aug 10, 2023
Igor Mahov (@Igorgro) I didn't try it, but it looks like a decent alternative. It seems to create a patch file that you can then view using a different extension. The feature request described in this issue goes much further, as we want to use our diff algorithm and the monaco editor to render the changes. We also want to allow users to modify/revert changes, which is not possible with the patch file approach.
jacekkopecky commentedon Aug 10, 2023
Agreed with Henning Dieterichs (@hediet) – my extension is useful but similar-but-richer native functionality would be preferred.
[-]Support opening a set of changes using a changes editor[/-][+]Multi File Diff Editor[/+]eamodio commentedon Nov 28, 2023
Henning Dieterichs (@hediet) Loving where this is going so far, but I've noticed some issue, but also would love to see additions/changes to the new
vscode.changescommand. How should I best report those? I didn't see a specific issue for thevscode.changescommand.hediet commentedon Nov 28, 2023
The
vscode.changescommand is experimental and subject to change. Feel free to create individual issues! But we cannot commit on stable API yet.