aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/package.json31
1 files changed, 29 insertions, 2 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 93a1d6d01..e0db3c337 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -147,6 +147,7 @@
147 }, 147 },
148 "problemPatterns": [ 148 "problemPatterns": [
149 { 149 {
150 "//comment": "named multiline problem patterns are not parsed properly in vscode at the moment, when fixed in vscode replace both \"pattern\": [...] below with \"pattern\": \"$rustc\"",
150 "name": "rustc", 151 "name": "rustc",
151 "patterns": [ 152 "patterns": [
152 { 153 {
@@ -171,7 +172,20 @@
171 "relative", 172 "relative",
172 "${workspaceRoot}" 173 "${workspaceRoot}"
173 ], 174 ],
174 "pattern": "$rustc" 175 "pattern": [
176 {
177 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
178 "severity": 1,
179 "code": 2,
180 "message": 3
181 },
182 {
183 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
184 "file": 1,
185 "line": 2,
186 "column": 3
187 }
188 ]
175 }, 189 },
176 { 190 {
177 "name": "rustc-watch", 191 "name": "rustc-watch",
@@ -183,7 +197,20 @@
183 "beginsPattern": "^\\[Running ", 197 "beginsPattern": "^\\[Running ",
184 "endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$" 198 "endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$"
185 }, 199 },
186 "pattern": "$rustc" 200 "pattern": [
201 {
202 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
203 "severity": 1,
204 "code": 2,
205 "message": 3
206 },
207 {
208 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
209 "file": 1,
210 "line": 2,
211 "column": 3
212 }
213 ]
187 } 214 }
188 ] 215 ]
189 } 216 }