diff options
author | Bernardo <[email protected]> | 2018-12-30 17:30:14 +0000 |
---|---|---|
committer | Bernardo <[email protected]> | 2019-01-01 20:27:36 +0000 |
commit | 96f0683974406055e98ff88af3b01327aae8ba61 (patch) | |
tree | a36fb5126420a54f3c7b2dce5147ef9c959b44cd /editors | |
parent | cff9f62d321a90c45e622f5304e60a248cbcf4f2 (diff) |
named multiline problem patterns are not parsed properly in vscode at the moment
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 31 |
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 | } |