Commit da3edb4
fix: use esbuild as preLaunchTask so F5 debug always works (#705)
* fix: use shell type for npm compile task to fix F5 debug on Windows
The 'npm' task type fails silently on Windows when npm isn't on PATH
in the task runner context, leaving the terminal empty and VS Code
stuck waiting on the preLaunchTask. Switching to 'type: shell' with
an explicit 'npm run compile' command is reliable across platforms.
Also changed reveal to 'always' so build errors are visible.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: use esbuild directly as preLaunchTask for fast, reliable F5 debug
The 'npm compile' preLaunchTask chains tsc --noEmit && eslint before
esbuild. Any TypeScript or lint error silently breaks the chain, leaving
dist/ unbuilt and VS Code stuck on the 'Waiting for preLaunchTask' popup.
Add a dedicated 'esbuild' task that runs node esbuild.js directly
(~1s, no type-checking failures). This is the actual bundler needed
for debugging. The full 'npm compile' task remains for CI/manual builds.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7d853a9 commit da3edb4
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
| |||
0 commit comments