fix regex and add rustc-watch problem matcher

This commit is contained in:
Bernardo 2018-12-30 18:24:07 +01:00
parent e4ffd7b317
commit cff9f62d32

View File

@ -145,6 +145,25 @@
} }
} }
}, },
"problemPatterns": [
{
"name": "rustc",
"patterns": [
{
"regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
"file": 1,
"line": 2,
"column": 3
}
]
}
],
"problemMatchers": [ "problemMatchers": [
{ {
"name": "rustc", "name": "rustc",
@ -152,29 +171,19 @@
"relative", "relative",
"${workspaceRoot}" "${workspaceRoot}"
], ],
"pattern": [ "pattern": "$rustc"
{
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
"severity": 1,
"message": 4,
"code": 3
}, },
{ {
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", "name": "rustc-watch",
"file": 2, "fileLocation": [
"line": 3, "relative",
"column": 4 "${workspaceRoot}"
],
"background": {
"beginsPattern": "^\\[Running ",
"endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$"
}, },
{ "pattern": "$rustc"
"regexp": "^.*$"
},
{
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
"file": 2,
"line": 3,
"column": 4
}
]
} }
] ]
} }