named multiline problem patterns are not parsed properly in vscode at the moment

This commit is contained in:
Bernardo 2018-12-30 18:30:14 +01:00
parent cff9f62d32
commit 96f0683974

View File

@ -147,6 +147,7 @@
},
"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": [
{
@ -171,7 +172,20 @@
"relative",
"${workspaceRoot}"
],
"pattern": "$rustc"
"pattern": [
{
"regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
"file": 1,
"line": 2,
"column": 3
}
]
},
{
"name": "rustc-watch",
@ -183,7 +197,20 @@
"beginsPattern": "^\\[Running ",
"endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$"
},
"pattern": "$rustc"
"pattern": [
{
"regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
"file": 1,
"line": 2,
"column": 3
}
]
}
]
}