From ddae45faa9f3f977b6367592c60d5334d5643f52 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Mon, 15 Apr 2019 23:25:36 +0200 Subject: [PATCH] Improve tasks.json (add a "Watch All" task) --- .vscode/tasks.json | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a76a4ea..bc98a64 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,14 +3,40 @@ // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ + { + "label": "Extension - Watch all", + "group": "build", + "dependsOn": [ + "Extension - Watch", + "Extension WebView - Watch" + ], + "problemMatcher": [], + "isBackground": true, + "runOptions": { + "runOn": "folderOpen" + } + }, { "type": "npm", "label": "Extension - Watch", "script": "watch", + "group": "build", "problemMatcher": [ - "$ts-webpack" + // A bit difficult to get a proper one. + // VSCode's language service stuff usually picks errors up, though + // otherwise, they're quite obvious in the terminal, and we don't + // have to worry about them slipping into release, as the release + // command will fail when there are any compilation errors ], "isBackground": true + }, + { + "type": "shell", + "label": "Extension WebView - Watch", + "command": "cd webview; npm start", + "group": "build", + "problemMatcher": [], // Same story as in "Extension - Watch" + "isBackground": true } ] -} +} \ No newline at end of file