summaryrefslogtreecommitdiff
path: root/.vscode/launch.json
diff options
context:
space:
mode:
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index c598750f..59a81d7e 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -34,6 +34,7 @@
"request": "launch",
"cwd": "${workspaceFolder}/extension",
"args": [
+ // Pass a directory to manually test in
"${workspaceFolder}/extension/manual-testing-sandbox",
"--extensionDevelopmentPath=${workspaceFolder}/extension",
],
@@ -45,5 +46,26 @@
"CONTINUE_SERVER_URL": "http://localhost:8001"
}
},
+ {
+ "name": "Tests (VSCode)",
+ "type": "extensionHost",
+ "request": "launch",
+ "cwd": "${workspaceFolder}/extension",
+ "runtimeExecutable": "${execPath}",
+ "args": [
+ // Pass a directory to run tests in
+ "${workspaceFolder}/extension/manual-testing-sandbox",
+ "--extensionDevelopmentPath=${workspaceFolder}/extension",
+ "--extensionTestsPath=${workspaceFolder}/extension/out/test-runner/mochaRunner"
+ ],
+ "outFiles": [
+ // Allows setting breakpoints in test suites across the /src folder
+ "${workspaceFolder}/extension/out/test-suites/**/*.js",
+ // Allows setting breakpoints in mocha test runner file
+ "${workspaceFolder}/extension/out/test-runner/**/*.js"
+ ],
+ "internalConsoleOptions": "openOnSessionStart",
+ "preLaunchTask": "vscode-extension:tests:build",
+ }
]
} \ No newline at end of file