File: launch.template.json

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (64 lines) | stat: -rw-r--r-- 2,012 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* 

  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.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Mocha Tests (currently opened test)",
      "runtimeArgs": ["--nolazy"],
      "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
      "args": [
        "-u",
        "bdd",
        "--no-timeouts",
        "--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"
      ],
      "env": {
        "NODE_ENV": "testing"
      },
      "outFiles": [
        "${workspaceFolder}/built/**/*.js",
        "${workspaceFolder}/built/**/*.mjs",
        "${workspaceFolder}/built/**/*.cjs",
        "!**/node_modules/**"
      ],
      "sourceMaps": true,
      "smartStep": true,
      "preLaunchTask": "npm: build:tests",
      "console": "integratedTerminal",
      "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
    },
    {
      // 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}",
      "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
    }
  ]
}