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