From 21669fc14e7ce4d406b784ffc48d2328de0ecf9e Mon Sep 17 00:00:00 2001 From: antony Date: Thu, 26 Mar 2026 13:44:29 +0530 Subject: [PATCH] feat: automate webview build on extension launch (dev) --- .vscode/launch.json | 2 +- .vscode/tasks.json | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6fb2cbe5..9eeb9e33 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "runtimeExecutable": "${execPath}", "args": ["--extensionDevelopmentPath=${workspaceFolder}"], "outFiles": ["${workspaceFolder}/dist/**/*.js"], - "preLaunchTask": "webpackBuild", + "preLaunchTask": "buildAll", "sourceMaps": true }, { diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f2075bc5..caef9554 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -30,6 +30,26 @@ "runOptions": { "instanceLimit": 1 } + }, + { + "label": "webviewBuild", + "type": "npm", + "script": "webview:build", + "problemMatcher": [], + "presentation": { + "echo": true, + "reveal": "silent", + "focus": false, + "panel": "shared", + "showReuseMessage": false, + "clear": true + } + }, + { + "label": "buildAll", + "dependsOrder": "sequence", + "dependsOn": ["webviewBuild", "webpackBuild"], + "problemMatcher": [] } ], "inputs": [