File tree 1 file changed +25
-4
lines changed
1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- // Rename this file 'launch.json' or merge its
2
- // contents into your existing configurations.
1
+ /*
2
+
3
+ Copy this file into '.vscode/launch.json' or merge its
4
+ contents into your existing configurations.
5
+
6
+ If you want to remove the errors in comments for all JSON
7
+ files, add this to your settings in ~/.vscode/User/settings.json
8
+
9
+ "files.associations" : {
10
+ "*.json" : " jsonc"
11
+ },
12
+
13
+ */
14
+
3
15
{
4
16
// Use IntelliSense to learn about possible attributes.
5
17
// Hover to view descriptions of existing attributes.
10
22
"type" : " node" ,
11
23
"protocol" : " inspector" ,
12
24
"request" : " launch" ,
13
- "name" : " Mocha Tests (currently opened test)" ,
25
+ "name" : " Mocha Tests (currently opened test)" ,
14
26
"runtimeArgs" : [" --nolazy" ],
15
27
"program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
16
28
"args" : [
20
32
" --colors" ,
21
33
" built/local/run.js" ,
22
34
" -f" ,
35
+ // You can change this to be the name of a specific test file (without the file extension)
36
+ // to consistently launch the same test
23
37
" ${fileBasenameNoExtension}" ,
24
38
" --skip-percent" ,
25
39
" 0"
34
48
"outFiles" : [
35
49
" ${workspaceRoot}/built/local/run.js"
36
50
]
51
+ },
52
+ {
53
+ // See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
54
+ "type" : " node" ,
55
+ "request" : " attach" ,
56
+ "name" : " Attach to VS Code TS Server via Port" ,
57
+ "processId" : " ${command:PickProcess}"
37
58
}
38
59
]
39
- }
60
+ }
You can’t perform that action at this time.
0 commit comments