diff --git a/editors/code/package.json b/editors/code/package.json index 43db61a8bc..ebb1b4a98b 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -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": [