Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 57e56f1

Browse files
committed
* start the watch task when launching the debugger
1 parent dd88908 commit 57e56f1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.vscode/launch.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"name": "Debug Styled Plugin",
88
"skipFiles": ["<node_internals>/**"],
99
"outFiles": ["${workspaceFolder}/lib/**/*.js"],
10-
"port": 9229
10+
"port": 9229,
11+
"preLaunchTask": "npm: watch:compile"
1112
}
1213
]
1314
}

.vscode/tasks.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
"type": "npm",
88
"script": "watch:compile",
99
"problemMatcher": [
10-
"$tsc-watch"
11-
]
10+
{
11+
"base": "$tsc-watch",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": "Starting compilation in watch mode",
15+
"endsPattern": "Watching\\sfor\\sfile\\schanges\\."
16+
}
17+
}
18+
],
19+
"isBackground": true
1220
}
1321
]
14-
}
22+
}

0 commit comments

Comments
 (0)