From 327060552665869701bc1f7bb9f870be339d1e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 29 May 2026 16:16:17 +0200 Subject: [PATCH] dev: add .vscode launch/tasks so F5 launches the extension host Without launch.json, F5 in a fresh clone just prompts for a debug environment. The 'Run Extension' configuration spawns an Extension Development Host with this workspace loaded, with `npm: compile` as a preLaunchTask so the extension always runs against an up-to-date build. Co-Authored-By: Claude Sonnet 4.6 --- .vscode/launch.json | 17 +++++++++++++++++ .vscode/tasks.json | 27 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..02621b4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: compile" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..df1457e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,27 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "compile", + "group": "build", + "problemMatcher": "$tsc", + "label": "npm: compile", + "presentation": { + "reveal": "silent", + "clear": true + } + }, + { + "type": "npm", + "script": "watch", + "group": "build", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "label": "npm: watch", + "presentation": { + "reveal": "silent" + } + } + ] +}