mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Add a rudimentary json regex to get at information like endLine
This commit is contained in:
parent
6cbd8a4a4b
commit
eed57dcded
1 changed files with 20 additions and 0 deletions
|
@ -313,6 +313,18 @@
|
|||
"column": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rustc-json",
|
||||
"patterns": [{
|
||||
"regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
|
||||
"message": 1,
|
||||
"file": 2,
|
||||
"line": 3,
|
||||
"endLine": 4,
|
||||
"column": 5,
|
||||
"endColumn": 6
|
||||
}]
|
||||
}
|
||||
],
|
||||
"problemMatchers": [
|
||||
|
@ -324,6 +336,14 @@
|
|||
],
|
||||
"pattern": "$rustc"
|
||||
},
|
||||
{
|
||||
"name": "rustc-json",
|
||||
"fileLocation": [
|
||||
"relative",
|
||||
"${workspaceRoot}"
|
||||
],
|
||||
"pattern": "$rustc-json"
|
||||
},
|
||||
{
|
||||
"name": "rustc-watch",
|
||||
"fileLocation": [
|
||||
|
|
Loading…
Reference in a new issue