Files
Marius 6f585fe555 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.
2026-02-18 09:05:38 +01:00

29 lines
1.1 KiB
JSON

// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "VSCode - Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}/packages/kilo-vscode"],
"outFiles": ["${workspaceFolder}/packages/kilo-vscode/dist/**/*.js"],
"preLaunchTask": "VSCode - Compile"
},
{
"name": "VSCode - Run Extension (Local Backend)",
"type": "extensionHost",
"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"
}
}
]
}