File tree Expand file tree Collapse file tree 2 files changed +30
-22
lines changed Expand file tree Collapse file tree 2 files changed +30
-22
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
"version" : " 0.2.0" ,
4
4
"configurations" : [
5
+ {
6
+ "name" : " Launch Extension Alone" ,
7
+ "type" : " extensionHost" ,
8
+ "request" : " launch" ,
9
+ "runtimeExecutable" : " ${execPath}" ,
10
+ "args" : [" --disable-extensions" , " --extensionDevelopmentPath=${workspaceRoot}" ],
11
+ "stopOnEntry" : false ,
12
+ "sourceMaps" : true ,
13
+ "outFiles" : [" ${workspaceRoot}/out/**/*.js" ],
14
+ "preLaunchTask" : " npm: watch"
15
+ },
5
16
{
6
17
"name" : " Launch Extension" ,
7
18
"type" : " extensionHost" ,
11
22
"stopOnEntry" : false ,
12
23
"sourceMaps" : true ,
13
24
"outFiles" : [" ${workspaceRoot}/out/**/*.js" ],
14
- "preLaunchTask" : " npm"
25
+ "preLaunchTask" : " npm: watch "
15
26
},
16
27
{
17
28
"name" : " Extension Tests" ,
20
31
"runtimeExecutable" : " ${execPath}" ,
21
32
"args" : [" --extensionDevelopmentPath=${workspaceFolder}" , " --extensionTestsPath=${workspaceFolder}/out/test" ],
22
33
"outFiles" : [" ${workspaceFolder}/out/test/**/*.js" ],
23
- "preLaunchTask" : " npm"
34
+ "preLaunchTask" : " npm: watch "
24
35
}
25
36
]
26
37
}
Original file line number Diff line number Diff line change 8
8
9
9
// A task runner that calls a custom npm script that compiles the extension.
10
10
{
11
- "version" : " 0.1.0" ,
12
-
13
- // we want to run npm
14
- "command" : " npm" ,
15
-
16
- // the command is a shell script
17
- "isShellCommand" : true ,
18
-
19
- // show the output window only if unrecognized errors occur.
20
- "showOutput" : " silent" ,
21
-
22
- // we run the custom script "compile" as defined in package.json
23
- "args" : [" run" , " compile" ],
24
-
25
- // The tsc compiler is started in watching mode
26
- "isBackground" : true ,
27
-
28
- // use the standard tsc in watch mode problem matcher to find compile problems in the output.
29
- "problemMatcher" : " $tsc-watch"
30
- }
11
+ "version" : " 2.0.0" ,
12
+ "tasks" : [
13
+ {
14
+ "type" : " npm" ,
15
+ "script" : " watch" ,
16
+ "presentation" : {
17
+ "reveal" : " never"
18
+ },
19
+ "group" : {
20
+ "isDefault" : true ,
21
+ "kind" : " build"
22
+ },
23
+ "isBackground" : true ,
24
+ "problemMatcher" : " $tsc-watch"
25
+ }
26
+ ]
27
+ }
You can’t perform that action at this time.
0 commit comments