mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 04:45:05 +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
|
"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": [
|
"problemMatchers": [
|
||||||
|
@ -324,6 +336,14 @@
|
||||||
],
|
],
|
||||||
"pattern": "$rustc"
|
"pattern": "$rustc"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "rustc-json",
|
||||||
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
|
"pattern": "$rustc-json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "rustc-watch",
|
"name": "rustc-watch",
|
||||||
"fileLocation": [
|
"fileLocation": [
|
||||||
|
|
Loading…
Reference in a new issue