Skip to content

Commit 34e91e9

Browse files
committed
Refactor problemMatcher for watch task to improve error handling
1 parent b8e6e11 commit 34e91e9

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.vscode/tasks.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66
{
77
"type": "npm",
88
"script": "watch",
9-
"problemMatcher": "$ts-webpack-watch",
9+
"problemMatcher": {
10+
"owner": "webpack",
11+
"severity": "error",
12+
"fileLocation": "absolute",
13+
"pattern": {
14+
"regexp": "ERROR in (.+)",
15+
"file": 1
16+
},
17+
"background": {
18+
"activeOnStart": true,
19+
"beginsPattern": "webpack .+ compilat",
20+
"endsPattern": "webpack .+ compiled"
21+
}
22+
},
1023
"isBackground": true,
1124
"presentation": {
1225
"reveal": "never",

0 commit comments

Comments
 (0)