fix: add preLaunchTask to VS Code launch configs for reliable F5 builds (#413)
Add a one-shot 'VSCode - Compile' task and wire it as preLaunchTask so pressing F5 always compiles kilo-vscode before launching, regardless of whether the background watch tasks started on folder open.
This commit is contained in:
Vendored
+3
-1
@@ -10,7 +10,8 @@
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}/packages/kilo-vscode"],
|
||||
"outFiles": ["${workspaceFolder}/packages/kilo-vscode/dist/**/*.js"]
|
||||
"outFiles": ["${workspaceFolder}/packages/kilo-vscode/dist/**/*.js"],
|
||||
"preLaunchTask": "VSCode - Compile"
|
||||
},
|
||||
{
|
||||
"name": "VSCode - Run Extension (Local Backend)",
|
||||
@@ -18,6 +19,7 @@
|
||||
"request": "launch",
|
||||
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}/packages/kilo-vscode"],
|
||||
"outFiles": ["${workspaceFolder}/packages/kilo-vscode/dist/**/*.js"],
|
||||
"preLaunchTask": "VSCode - Compile",
|
||||
"env": {
|
||||
"KILO_API_URL": "http://localhost:3000"
|
||||
}
|
||||
|
||||
Vendored
+14
@@ -65,6 +65,20 @@
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "VSCode - Compile",
|
||||
"type": "shell",
|
||||
"command": "bun",
|
||||
"args": ["run", "compile"],
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"reveal": "silent"
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/packages/kilo-vscode"
|
||||
},
|
||||
"problemMatcher": ["$tsc", "$eslint-stylish"]
|
||||
},
|
||||
{
|
||||
"label": "VSCode - Tests",
|
||||
"type": "shell",
|
||||
|
||||
Reference in New Issue
Block a user