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 15{ 16 // Use IntelliSense to learn about possible attributes. 17 // Hover to view descriptions of existing attributes. 18 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 19 "version": "0.2.0", 20 "configurations": [ 21 { 22 "type": "node", 23 "request": "launch", 24 "name": "Mocha Tests (currently opened test)", 25 "runtimeArgs": ["--nolazy"], 26 "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", 27 "args": [ 28 "-u", 29 "bdd", 30 "--no-timeouts", 31 "--colors", 32 "built/local/run.js", 33 "-f", 34 // You can change this to be the name of a specific test file (without the file extension) 35 // to consistently launch the same test 36 "${fileBasenameNoExtension}", 37 "--skip-percent", 38 "0" 39 ], 40 "env": { 41 "NODE_ENV": "testing" 42 }, 43 "sourceMaps": true, 44 "smartStep": true, 45 "preLaunchTask": "npm: build:tests", 46 "console": "integratedTerminal", 47 "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" 48 }, 49 { 50 // See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code 51 "type": "node", 52 "request": "attach", 53 "name": "Attach to VS Code TS Server via Port", 54 "processId": "${command:PickProcess}", 55 "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" 56 } 57 ] 58} 59