Skip to content

Commit 1adb8a1

Browse files
committed
Add input prompt for test file selection in launch configuration
1 parent 48db7f1 commit 1adb8a1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.vscode/launch.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@
3030
"-r",
3131
"tsconfig-paths/register"
3232
],
33-
"args": ["${workspaceFolder}/tests/simple.test.ts"],
33+
"args": ["${workspaceFolder}/tests/${input:testFile}.test.ts"],
3434
"cwd": "${workspaceRoot}",
3535
"internalConsoleOptions": "openOnSessionStart",
3636
"skipFiles": ["<node_internals>/**", "node_modules/**"]
3737
}
38+
],
39+
"inputs": [
40+
{
41+
"id": "testFile",
42+
"type": "promptString",
43+
"description": "Enter the name of the file to run",
44+
"default": "simple-json"
45+
}
3846
]
3947
}

0 commit comments

Comments
 (0)