Use named multiline Problem Matcher
Now that is in the latest
release we can use the first commit from
},
"problemPatterns": [
{
- "//comment": "named multiline problem patterns are not parsed properly in vscode at the moment, when fixed in vscode replace both \"pattern\": [...] below with \"pattern\": \"$rustc\"",
"name": "rustc",
"patterns": [
{
"relative",
"${workspaceRoot}"
],
- "pattern": [
- {
- "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
- "severity": 1,
- "code": 2,
- "message": 3
- },
- {
- "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
- "file": 1,
- "line": 2,
- "column": 3
- }
- ]
+ "pattern": "$rustc"
},
{
"name": "rustc-watch",
"beginsPattern": "^\\[Running ",
"endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$"
},
- "pattern": [
- {
- "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
- "severity": 1,
- "code": 2,
- "message": 3
- },
- {
- "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
- "file": 1,
- "line": 2,
- "column": 3
- }
- ]
+ "pattern": "$rustc"
}
]
}
