]> git.lizzy.rs Git - rust.git/commitdiff
Add a rudimentary json regex to get at information like `endLine`
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sun, 15 Dec 2019 16:12:52 +0000 (17:12 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Sun, 15 Dec 2019 16:12:52 +0000 (17:12 +0100)
editors/code/package.json

index 43db61a8bc0f82337d406e4e585086c081a8a085..ebb1b4a98be3fcd23a8bcf12981d9bc31048c04b 100644 (file)
                         "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": [
                 ],
                 "pattern": "$rustc"
             },
+            {
+                "name": "rustc-json",
+                "fileLocation": [
+                    "relative",
+                    "${workspaceRoot}"
+                ],
+                "pattern": "$rustc-json"
+            },
             {
                 "name": "rustc-watch",
                 "fileLocation": [