Skip to content

Commit

Permalink
Improve the launch template
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Oct 19, 2019
1 parent f5dbcb7 commit 0a0833b
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .vscode/launch.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
// Rename this file 'launch.json' or merge its
// contents into your existing configurations.
/*

Copy this file into '.vscode/launch.json' or merge its
contents into your existing configurations.

If you want to remove the errors in comments for all JSON
files, add this to your settings in ~/.vscode/User/settings.json

"files.associations": {
"*.json": "jsonc"
},

*/

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
Expand All @@ -10,7 +22,7 @@
"type": "node",
"protocol": "inspector",
"request": "launch",
"name": "Mocha Tests (currently opened test)",
"name": "Mocha Tests (currently opened test)",
"runtimeArgs": ["--nolazy"],
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
Expand All @@ -20,6 +32,8 @@
"--colors",
"built/local/run.js",
"-f",
// You can change this to be the name of a specific test file (without the file extension)
// to consistently launch the same test
"${fileBasenameNoExtension}",
"--skip-percent",
"0"
Expand All @@ -34,6 +48,13 @@
"outFiles": [
"${workspaceRoot}/built/local/run.js"
]
},
{
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
"type": "node",
"request": "attach",
"name": "Attach to VS Code TS Server via Port",
"processId": "${command:PickProcess}"
}
]
}
}

0 comments on commit 0a0833b

Please sign in to comment.