Skip to content

Commit 514499c

Browse files
committed
bug: fixes spawning of watch-dev in VS Code
Fixes bug: watcher not synced during development host spawn #602
1 parent 1ba13a2 commit 514499c

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Diff for: .vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1212
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
13-
"preLaunchTask": "npm: compile-dev"
13+
"preLaunchTask": "${defaultBuildTask}"
1414
},
1515
{
1616
"name": "Launch Tests",

Diff for: .vscode/tasks.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,20 @@
1010
"isDefault": true
1111
},
1212
"isBackground": true,
13-
"problemMatcher": "$tsc-watch",
13+
"presentation": {
14+
"panel": "dedicated",
15+
"reveal": "never"
16+
},
17+
"problemMatcher": [
18+
{
19+
"base": "$tsc-watch",
20+
"background": {
21+
"activeOnStart": true,
22+
"beginsPattern": "asset .*",
23+
"endsPattern": "webpack .* compiled .*"
24+
}
25+
}
26+
],
1427
"detail": "webpack --mode development --watch --progress"
1528
},
1629
{

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ npm run compile-dev
5353

5454
### Developing & Debugging 🐞️
5555

56-
You can now start writing code the `watcher` task will check for compilation errors.
56+
You can now start writing code, the `watcher` task, if not running, will automatically start when debugging.
5757
You can actively debug the extension by pressing <kbd>F5</kbd> with `Launch Extension` selected.
5858

5959
👉 **Tip!** You don't need to stop and restart the development version of VS Code after each change. You can just execute `Reload Window` from the command palette in the

0 commit comments

Comments
 (0)