From bc99a4402a71fbba7d26e4b79f7539df6ac87c91 Mon Sep 17 00:00:00 2001 From: Kirill Dubovitskiy Date: Mon, 7 Aug 2023 16:34:02 -0700 Subject: - Allowing debugging server while debugging extension tests - Preventing mocha timeouts due to hitting breakpoints --- .vscode/launch.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.vscode/launch.json') diff --git a/.vscode/launch.json b/.vscode/launch.json index 59a81d7e..75ee1f7a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,6 +11,14 @@ "Server", "Extension (VSCode)" ] + }, + { + "name": "Server + Tests (VSCode)", + "stopAll": true, + "configurations": [ + "Server", + "Tests (VSCode)" + ] } ], "configurations": [ @@ -46,6 +54,7 @@ "CONTINUE_SERVER_URL": "http://localhost:8001" } }, + // Has to be run after starting the server (separately or using the compound configuration) { "name": "Tests (VSCode)", "type": "extensionHost", @@ -66,6 +75,11 @@ ], "internalConsoleOptions": "openOnSessionStart", "preLaunchTask": "vscode-extension:tests:build", + "env": { + "CONTINUE_SERVER_URL": "http://localhost:8001", + // Avoid timing out when stopping on breakpoints during debugging in VSCode + "MOCHA_TIMEOUT": "0", + }, } ] } \ No newline at end of file -- cgit v1.2.3-70-g09d2