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
- // A task runner that calls a custom npm script that compiles the extension.
9
1
{
10
2
"version" : " 2.0.0" ,
11
3
"tasks" : [
12
4
{
13
- "label" : " npm: watch" ,
14
- "type" : " shell" ,
15
- "command" : " npm" ,
16
- "args" : [
17
- " run" ,
18
- " watch" ,
19
- " --loglevel" ,
20
- " silent"
21
- ],
22
- "isBackground" : true ,
23
- "problemMatcher" : " $tsc-watch" ,
5
+ "label" : " npm: watch-dev" ,
6
+ "type" : " npm" ,
7
+ "script" : " watch-dev" ,
24
8
"group" : {
25
9
"kind" : " build" ,
26
10
"isDefault" : true
27
- }
11
+ },
12
+ "isBackground" : true ,
13
+ "problemMatcher" : " $tsc-watch" ,
14
+ "detail" : " tsc -watch -p tsconfig.json"
15
+ },
16
+ {
17
+ "label" : " npm: compile-dev" ,
18
+ "type" : " npm" ,
19
+ "script" : " compile-dev" ,
20
+ "group" : " build" ,
21
+ "problemMatcher" : " $tsc" ,
22
+ "detail" : " tsc -p tsconfig.json"
23
+ },
24
+ {
25
+ "label" : " npm: pretest" ,
26
+ "type" : " npm" ,
27
+ "script" : " pretest" ,
28
+ "group" : " test" ,
29
+ "problemMatcher" : " $tsc" ,
30
+ "detail" : " tsc -p tsconfig.test.json"
28
31
},
29
32
{
30
- "label" : " npm: compile " ,
33
+ "label" : " npm: pretest setup " ,
31
34
"type" : " shell" ,
32
- "command" : " npm" ,
33
- "args" : [
34
- " run" ,
35
- " compile" ,
36
- " --loglevel" ,
37
- " silent"
35
+ "dependsOn" : [
36
+ " npm: compile-dev" ,
37
+ " npm: pretest"
38
38
],
39
- "isBackground" : true ,
40
- "problemMatcher" : " $tsc-watch" ,
41
- "group" : " build"
39
+ "dependsOrder" : " sequence" ,
40
+ "group" : {
41
+ "kind" : " test" ,
42
+ "isDefault" : true
43
+ },
44
+ "detail" : " setup for test launch"
45
+
42
46
}
43
47
]
44
48
}
0 commit comments