create snippet from git patch and apply patch stored in a snippet
Problem to solve
When I review MR, sometimes I want to suggest changes that span multiple lines in multiple files and the "suggestions" GitLab feature is not powerful enough for that.
Then I result in creating the changes locally, running git diff > suggestions.patch and including this patch to one of my MR comments.
Proposal
Introduce two new commands: Create patch snippet and Apply patch snippet.
Create patch snippet
- run the command
- VS Code asks for the patch name and visibility
- VS Code runs
git diffto get the patch - project snippet with name
patch: <name submitted by the user>is created
Apply patch snippet
- run the command
- VS Code shows a list of all snippets with
patch:name prefix - select one patch
- VS Code runs
git applyto apply the patch
Further details
Links / references
/cc @phikai
Edited by Tomas Vik (OOO back on 2026-01-05)