Skip to content

Commit f536703

Browse files
committed
launch extension in debug alone
1 parent 7ca9342 commit f536703

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

.vscode/launch.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
{
33
"version": "0.2.0",
44
"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+
},
516
{
617
"name": "Launch Extension",
718
"type": "extensionHost",
@@ -11,7 +22,7 @@
1122
"stopOnEntry": false,
1223
"sourceMaps": true,
1324
"outFiles": ["${workspaceRoot}/out/**/*.js"],
14-
"preLaunchTask": "npm"
25+
"preLaunchTask": "npm: watch"
1526
},
1627
{
1728
"name": "Extension Tests",
@@ -20,7 +31,7 @@
2031
"runtimeExecutable": "${execPath}",
2132
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
2233
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
23-
"preLaunchTask": "npm"
34+
"preLaunchTask": "npm: watch"
2435
}
2536
]
2637
}

.vscode/tasks.json

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@
88

99
// A task runner that calls a custom npm script that compiles the extension.
1010
{
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+
}

0 commit comments

Comments
 (0)