aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/package.json64
1 files changed, 50 insertions, 14 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 2989a7016..e0db3c337 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -145,6 +145,26 @@
145 } 145 }
146 } 146 }
147 }, 147 },
148 "problemPatterns": [
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\"",
151 "name": "rustc",
152 "patterns": [
153 {
154 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
155 "severity": 1,
156 "code": 2,
157 "message": 3
158 },
159 {
160 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
161 "file": 1,
162 "line": 2,
163 "column": 3
164 }
165 ]
166 }
167 ],
148 "problemMatchers": [ 168 "problemMatchers": [
149 { 169 {
150 "name": "rustc", 170 "name": "rustc",
@@ -154,28 +174,44 @@
154 ], 174 ],
155 "pattern": [ 175 "pattern": [
156 { 176 {
157 "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$", 177 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
158 "severity": 1, 178 "severity": 1,
159 "message": 4, 179 "code": 2,
160 "code": 3 180 "message": 3
161 }, 181 },
162 { 182 {
163 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", 183 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
164 "file": 2, 184 "file": 1,
165 "line": 3, 185 "line": 2,
166 "column": 4 186 "column": 3
167 }, 187 }
188 ]
189 },
190 {
191 "name": "rustc-watch",
192 "fileLocation": [
193 "relative",
194 "${workspaceRoot}"
195 ],
196 "background": {
197 "beginsPattern": "^\\[Running ",
198 "endsPattern": "^(\\[Finished running\\]|To learn more, run the command again with --verbose\\.)$"
199 },
200 "pattern": [
168 { 201 {
169 "regexp": "^.*$" 202 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
203 "severity": 1,
204 "code": 2,
205 "message": 3
170 }, 206 },
171 { 207 {
172 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", 208 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
173 "file": 2, 209 "file": 1,
174 "line": 3, 210 "line": 2,
175 "column": 4 211 "column": 3
176 } 212 }
177 ] 213 ]
178 } 214 }
179 ] 215 ]
180 } 216 }
181} 217} \ No newline at end of file