summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-05-31 01:22:23 -0700
committerN. Taylor Mullen <[email protected]>2025-05-31 01:28:21 -0700
commit76cee17417f6ffce5078aff5fdac8380e0322a2a (patch)
treef9a601851874efda21b6d2788880f9248cbaacca /.vscode
parent0dbd12e295a0a1df92915b0b3016397a1c49a296 (diff)
Refactor: Generalize VSCode launch configuration for debugging tests
- Consolidates multiple specific test debug configurations into a single, more flexible configuration named "Debug Test File". - Introduces an input variable `testFile` to prompt the user for the specific test file path, defaulting to a sample test file. - This change simplifies the launch configuration and makes it easier to debug any test file without needing a dedicated configuration for each.
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json172
1 files changed, 10 insertions, 162 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 83543bfc..e159f093 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -26,182 +26,30 @@
{
"type": "node",
"request": "launch",
- "name": "Debug CLI Test: text-buffer",
+ "name": "Debug Test File",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"test",
"-w",
- "packages/cli",
+ "packages/cli", // Default to CLI, change if needed or prompt for package
"--",
"--inspect-brk=9229",
"--no-file-parallelism",
- "${workspaceFolder}/packages/cli/src/ui/components/shared/text-buffer.test.ts"
+ "${input:testFile}"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug Server Test: read-many-files",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/core",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/core/src/tools/read-many-files.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug CLI Test: atCommandProcessor",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/cli",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/cli/src/ui/hooks/atCommandProcessor.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug Server Test: read-file",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/core",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/core/src/tools/read-file.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug Server Test: turn",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/core",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/core/src/core/turn.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug Server Test: fileUtils",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/core",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/core/src/utils/fileUtils.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug useLoadingIndicator Test (CLI)",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/cli",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/cli/src/ui/hooks/useLoadingIndicator.test.ts"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
- {
- "type": "node",
- "request": "launch",
- "name": "Debug LoadingIndicator Test (CLI)",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/cli",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/cli/src/ui/components/LoadingIndicator.test.tsx"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
- },
+ }
+ ],
+ "inputs": [
{
- "type": "node",
- "request": "launch",
- "name": "Debug CLI Test: useGeminiStream",
- "runtimeExecutable": "npm",
- "runtimeArgs": [
- "run",
- "test",
- "-w",
- "packages/cli",
- "--",
- "--inspect-brk=9229",
- "--no-file-parallelism",
- "${workspaceFolder}/packages/cli/src/ui/hooks/useGeminiStream.test.tsx"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "skipFiles": ["<node_internals>/**"]
+ "id": "testFile",
+ "type": "promptString",
+ "description": "Enter the path to the test file (e.g., ${workspaceFolder}/packages/cli/src/ui/components/LoadingIndicator.test.tsx)",
+ "default": "${workspaceFolder}/packages/cli/src/ui/components/LoadingIndicator.test.tsx"
}
]
}