Bug
The Run Extension launch config in apps/vscode/.vscode/launch.json uses "preLaunchTask": "${defaultBuildTask}". The default build task in apps/vscode/.vscode/tasks.json is:
{ "type": "npm", "script": "watch", "problemMatcher": "$tsc-watch", "isBackground": true, ... }
apps/vscode/package.json has no watch script (it has build, dev, build-test, ...), so F5 from the apps/vscode folder fails at the pre-launch step. The root .vscode/tasks.json has the same npm: watch task, although the root "Run VS Code Extension" config doesn't use it.
Also, $tsc-watch is the wrong problem matcher even if a watch script existed, because the build is esbuild (tsx build.ts), not tsc --watch.
Fix options
- Point the default build task at an existing script (e.g.
yarn dev, which is tsx build.ts dev), make it non-background, and use problemMatcher: [] or an esbuild matcher. That also needs the other workspaces to be built, so it may have to be turbo run build --filter quarto... from the repo root, like vscode:prepublish does.
- Or add a real
watch script. Note that the turbo 2 upgrade plan (deps-upgrade-turbo.md) also drops a broken root watch script, so coordinate with that.
Also update the root .vscode/tasks.json for consistency, and check that apps/vscode/CONTRIBUTING.md describes the debug flow correctly.
Found during the dependency-upgrade research.
Bug
The Run Extension launch config in
apps/vscode/.vscode/launch.jsonuses"preLaunchTask": "${defaultBuildTask}". The default build task inapps/vscode/.vscode/tasks.jsonis:{ "type": "npm", "script": "watch", "problemMatcher": "$tsc-watch", "isBackground": true, ... }apps/vscode/package.jsonhas nowatchscript (it hasbuild,dev,build-test, ...), so F5 from theapps/vscodefolder fails at the pre-launch step. The root.vscode/tasks.jsonhas the samenpm: watchtask, although the root "Run VS Code Extension" config doesn't use it.Also,
$tsc-watchis the wrong problem matcher even if a watch script existed, because the build is esbuild (tsx build.ts), nottsc --watch.Fix options
yarn dev, which istsx build.ts dev), make it non-background, and useproblemMatcher: []or an esbuild matcher. That also needs the other workspaces to be built, so it may have to beturbo run build --filter quarto...from the repo root, likevscode:prepublishdoes.watchscript. Note that the turbo 2 upgrade plan (deps-upgrade-turbo.md) also drops a broken rootwatchscript, so coordinate with that.Also update the root
.vscode/tasks.jsonfor consistency, and check thatapps/vscode/CONTRIBUTING.mddescribes the debug flow correctly.Found during the dependency-upgrade research.