mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 04:15:08 +00:00
fix regex and add rustc-watch problem matcher
This commit is contained in:
parent
e4ffd7b317
commit
cff9f62d32
1 changed files with 33 additions and 24 deletions
|
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue