Skip to content

Commit ea0225b

Browse files
committed
feat: add preLaunch and postDebug tasks for improved extension debugging workflow
1 parent 660f088 commit ea0225b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"outFiles": [
1616
"${workspaceFolder}/dist/**/*.js"
1717
],
18-
"preLaunchTask": "${defaultBuildTask}"
18+
"preLaunchTask": "watch",
19+
"postDebugTask": "stop watch tasks"
1920
}
2021
]
2122
}

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@
8383
"npm: watch-tests"
8484
],
8585
"problemMatcher": []
86+
},
87+
{
88+
"label": "stop watch tasks",
89+
"type": "shell",
90+
"command": "bash",
91+
"args": [
92+
"-lc",
93+
"pkill -f \"node esbuild.js --watch\" >/dev/null 2>&1 || true; pkill -f \"vite\" >/dev/null 2>&1 || true"
94+
],
95+
"problemMatcher": [],
96+
"presentation": {
97+
"reveal": "never"
98+
}
8699
}
87100
]
88101
}

0 commit comments

Comments
 (0)