-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use built-in vscode.diff editor to compare the current code(pointed via file URI) with proposed changes(pointed via custom konveyorMemFs Uri). Key points: 1. proposed changes (diffs) are applied to current code base and are written to in-memory file system. Late they can be accessed via custom URI scheme konveyorMemFs. 2. both left and right side of the diff is editable 3. available commands grouped using `konveyor` (global) or `konveyor.diffView` prefix(diff view specific): a) applyAll - apply all fixes b) revertAll - discard local changes to the proposed fixes c) applyFile/revertFile - as above but on a single file d) copyDiff/copyPath - convenience commands (single file scope) e) next/prev - keyboard navigation (for now) using the same key bindings as reference-view extension (f4 and shift+f4) f) viewFix - wrapper around vscode.diff that uses konveyorMemFs Sources: 1. tree view is based on built-in reference-view extension. Only file-item nodes are used. Support for history items and dynamic model changes have been dropped. However the original architecture is there and should allow adding more advance features in the future. 2. in-memory file system is taken as-it-is from fsprovider-sample 3. the approach (using hidden file tree for fixes) originates from Continue's DiffManager 5. check/discard icons taken from source-control-sample Reference-Url: https://github.com/continuedev/continue/blob/e7fe5994ffc6a3f45ad358ced7d6890deb145d96/extensions/vscode/src/diff/horizontal.ts#L34 Reference-Url: https://github.com/microsoft/vscode/tree/main/extensions/references-view Reference-Url: https://github.com/microsoft/vscode-extension-samples/tree/main/fsprovider-sample Reference-Url: https://github.com/microsoft/vscode-extension-samples/tree/main/source-control-sample --------- Signed-off-by: Radoslaw Szwajkowski <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,001 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Oops, something went wrong.