Skip to content

Commit 8128445

Browse files
committed
feat(tasks): add worktree creation and removal tasks with user input
1 parent eefa005 commit 8128445

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.vscode/tasks.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
{
22
"version": "2.0.0",
3+
"inputs": [
4+
{
5+
"id": "worktreeName",
6+
"type": "promptString",
7+
"description": "Worktree name (e.g. my-feature) — branch will be worktree-<name>"
8+
}
9+
],
310
"tasks": [
11+
// ============ Worktree Tasks ============
12+
{
13+
"label": "worktree: create",
14+
"type": "shell",
15+
"command": "git worktree add \".claude/worktrees/${input:worktreeName}\" -b \"worktree-${input:worktreeName}\" && code --new-window \".claude/worktrees/${input:worktreeName}\"",
16+
"options": {
17+
"cwd": "${workspaceFolder}"
18+
},
19+
"problemMatcher": [],
20+
"presentation": {
21+
"reveal": "always",
22+
"panel": "dedicated"
23+
}
24+
},
25+
{
26+
"label": "worktree: remove",
27+
"type": "shell",
28+
"command": "git worktree remove \".claude/worktrees/${input:worktreeName}\"",
29+
"options": {
30+
"cwd": "${workspaceFolder}"
31+
},
32+
"problemMatcher": [],
33+
"presentation": {
34+
"reveal": "always",
35+
"panel": "dedicated"
36+
}
37+
},
438
// ============ Begin Tasks ============
539
{
640
"label": "begin: serve (desktop)",

0 commit comments

Comments
 (0)