konveyor / editor-extensions

Developer experience stuff, like VSCode Extension, for Konveyor.
0 stars 8 forks source link

:sparkles: Add Apply Block command #102

Closed rszwajko closed 2 days ago

rszwajko commented 4 days ago

Add the reverse of the existing built-in Revert Block command. The functionality is inspired by Git Stage diff view (issue 206808) Known limitation:

  1. API for adding the action (contribDiffEditorGutterToolBarMenus) has proposal status.
  2. due to a bug in VS Code a duplicated editor is opened for left-side edits (submitted bug 234097)

Related changes:

  1. dropped custom icons for Apply/Discar - replaced with built-in
  2. changed the naming for Revert action - it's now called Discard
  3. changed the logic for Revert/Discard to align it better with the wireframes
  4. added Reload Last Resolutions command - similar to previous logic in Revert/Discard. The main use case is to view the solutions again i.e. after the changes were unstaged or after a branch was changed.

Reference-Url: https://github.com/microsoft/vscode/issues/234097 Reference-Url: https://github.com/microsoft/vscode/issues/206808

rszwajko commented 4 days ago

Screencast

Note that "Revert Block" action is built in.

https://github.com/user-attachments/assets/ff6ea183-95f8-4653-aac9-afba7b370682