Add problem matchers for panic and test failure

This commit is contained in:
Teoh Han Hui 2022-01-13 19:24:16 +08:00
parent 9e120dd99b
commit fd2aa4a2d1
No known key found for this signature in database
GPG key ID: D43E2BABAF97DCAE

View file

@ -1,7 +1,7 @@
{ {
"problemMatcher": [ "problemMatcher": [
{ {
"owner": "rust", "owner": "rust-diagnostic",
"pattern": [ "pattern": [
{ {
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$", "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
@ -16,6 +16,27 @@
"column": 4 "column": 4
} }
] ]
},
{
"owner": "rust-panic",
"pattern": [
{
"regexp": "^(thread\\s+'[^']+'\\s+panicked\\s+at\\s+'[^']+(?:'|$))(?:,\\s+([^/\\\\][^:]+):(\\d+):(\\d+))?",
"file": 2,
"line": 3,
"column": 4,
"message": 1
}
]
},
{
"owner": "rust-test-failure",
"pattern": [
{
"regexp": "^(test\\s+\\w+\\s+\\.{3}\\s+FAILED)",
"message": 1
}
]
} }
] ]
} }