From 0dcbaad8a905cc1ec4b904d2d23ff51af789793e Mon Sep 17 00:00:00 2001 From: velvettear Date: Tue, 1 Feb 2022 11:44:23 +0100 Subject: [PATCH] extended tasks.json and fixed launch.json --- .vscode/launch.json | 18 ++++++++++++++++++ .vscode/tasks.json | 17 ++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bad8103 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "chromium: tabber", + "url": "http://localhost:9000", + "webRoot": "${workspaceFolder}/src", + "breakOnLoad": true, + "sourceMapPathOverrides": { + "webpack:///src/*": "${webRoot}/*" + }, + "preLaunchTask": "serve", + "postDebugTask": "terminate all tasks" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index bc450c1..cb27d11 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -16,7 +16,22 @@ "args": [ "run", "serve" - ] + ], + "isBackground": true + }, + { + "label": "terminate all tasks", + "command": "echo ${input:terminate}", + "type": "shell", + "problemMatcher": [] + } + ], + "inputs": [ + { + "id": "terminate", + "type": "command", + "command": "workbench.action.tasks.terminate", + "args": "terminateAll" } ] } \ No newline at end of file