COMMITDOCK-0007: Phase 3 — stage, unstage, and discard selection#3
Merged
Conversation
Wire the webview and palette to vscode.git add/revert/clean/restore for paths that remain selected (not in the deselected set). Discard prompts with a modal warning before deleting untracked files or reverting working tree content. Bump protocol to v4, add toolbar actions and three commands, extend the Git API subset with restore, and release 0.4.0.
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.
Summary
Phase 3 wires Stage, Unstage, and Discard to the built-in Git extension for selected paths (everything selectable except explicitly deselected checkboxes). Protocol bumps to v4 with three new webview messages and matching palette commands.
Behaviour
addon selected changes and untracked paths.reverton selected staged paths (index only).cleanfor selected untracked paths andrestorefor selected working-tree paths. Staged blobs are left untouched; copy in the dialog explains unstage-first if needed.After a successful operation, affected paths are removed from the deselection set so the UI reflects an explicit action, then the snapshot is pushed immediately.
Verification
npm run compilenpm run lintFollow-up
Phase 4: commit message UI and plain commit (likely auto-stage selected).