Add a rudimentary json regex to get at information like endLine

This commit is contained in:
Oliver Scherer 2019-12-15 17:12:52 +01:00
parent 6cbd8a4a4b
commit eed57dcded

View file

@ -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": [