From d71e523074683f1702a1e0fad92667671732685f Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Thu, 19 Jun 2025 19:00:40 +0200 Subject: [PATCH] Terminate task after debug ends --- src/Vegasco-Web/.vscode/launch.json | 1 + src/Vegasco-Web/.vscode/tasks.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/Vegasco-Web/.vscode/launch.json b/src/Vegasco-Web/.vscode/launch.json index 45307d0..5d733e3 100644 --- a/src/Vegasco-Web/.vscode/launch.json +++ b/src/Vegasco-Web/.vscode/launch.json @@ -7,6 +7,7 @@ "type": "chrome", "request": "launch", "preLaunchTask": "npm: start", + "postDebugTask": "Terminate All Tasks", "url": "http://localhost:44200/", } ] diff --git a/src/Vegasco-Web/.vscode/tasks.json b/src/Vegasco-Web/.vscode/tasks.json index 91e9a1b..84052b9 100644 --- a/src/Vegasco-Web/.vscode/tasks.json +++ b/src/Vegasco-Web/.vscode/tasks.json @@ -2,6 +2,12 @@ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 "version": "2.0.0", "tasks": [ + { + "label": "Terminate All Tasks", + "command": "echo ${input:terminate}", + "type": "shell", + "problemMatcher": [] + }, { "type": "npm", "script": "start", @@ -45,5 +51,13 @@ } } } + ], + "inputs": [ + { + "id": "terminate", + "type": "command", + "command": "workbench.action.tasks.terminate", + "args": "terminateAll" + } ] }