diff options
author | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-07 16:34:02 -0700 |
---|---|---|
committer | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-07 16:44:08 -0700 |
commit | bc99a4402a71fbba7d26e4b79f7539df6ac87c91 (patch) | |
tree | 6792c0f3a3f4fbe74f6194bd05aa525aebe4c6e7 /.vscode | |
parent | bf41d986c97cd1b9a831bdbe340b7853e7bd69a7 (diff) | |
download | sncontinue-bc99a4402a71fbba7d26e4b79f7539df6ac87c91.tar.gz sncontinue-bc99a4402a71fbba7d26e4b79f7539df6ac87c91.tar.bz2 sncontinue-bc99a4402a71fbba7d26e4b79f7539df6ac87c91.zip |
- Allowing debugging server while debugging extension tests
- Preventing mocha timeouts due to hitting breakpoints
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 14 |
1 files changed, 14 insertions, 0 deletions
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 |