|
64605
|
1 |
// Available variables which can be used inside of strings.
|
|
|
2 |
// ${workspaceRoot}: the root folder of the team
|
|
|
3 |
// ${file}: the current opened file
|
|
|
4 |
// ${fileBasename}: the current opened file's basename
|
|
|
5 |
// ${fileDirname}: the current opened file's dirname
|
|
|
6 |
// ${fileExtname}: the current opened file's extension
|
|
|
7 |
// ${cwd}: the current working directory of the spawned process
|
|
|
8 |
|
|
|
9 |
// A task runner that calls a custom npm script that compiles the extension.
|
|
|
10 |
{
|
|
75094
|
11 |
"version": "2.0.0",
|
|
64605
|
12 |
|
|
|
13 |
// we want to run npm
|
|
|
14 |
"command": "npm",
|
|
|
15 |
|
|
|
16 |
// we run the custom script "compile" as defined in package.json
|
|
|
17 |
"args": ["run", "compile", "--loglevel", "silent"],
|
|
|
18 |
|
|
|
19 |
// The tsc compiler is started in watching mode
|
|
|
20 |
"isWatching": true,
|
|
|
21 |
|
|
|
22 |
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
|
|
75094
|
23 |
"problemMatcher": "$tsc-watch",
|
|
|
24 |
"tasks": [
|
|
|
25 |
{
|
|
|
26 |
"label": "npm",
|
|
|
27 |
"type": "shell",
|
|
|
28 |
"command": "npm",
|
|
|
29 |
"args": [
|
|
|
30 |
"run",
|
|
|
31 |
"compile",
|
|
|
32 |
"--loglevel",
|
|
|
33 |
"silent"
|
|
|
34 |
],
|
|
|
35 |
"isBackground": true,
|
|
|
36 |
"problemMatcher": "$tsc-watch",
|
|
|
37 |
"group": {
|
|
|
38 |
"_id": "build",
|
|
|
39 |
"isDefault": false
|
|
|
40 |
}
|
|
|
41 |
}
|
|
|
42 |
]
|
|
64605
|
43 |
} |