Skip to content

Commit dd8ea97

Browse files
committed
vscode: Fix line and col regexp for problem matcher
When building the Rust compiler with `./x check` from within VS Code, the current `rustc` problem matcher thinks that the output from that command that looks like this: Build completed successfully in 0:00:26 is about a problem in a file named `0` on line 00, col 26. This wouldn't be so bad if it wasn't for that VS Code tends to get stuck on this problem because of problems with opening the file '0'. The rust compiler will never output problems with a line or a column that starts with 0, so change the regexp to require lines and cols to begin with [1-9] to fix this problem.
1 parent 547bcf8 commit dd8ea97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@
16211621
"message": 3
16221622
},
16231623
{
1624-
"regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1624+
"regexp": "^[\\s->=]*(.*?):([1-9]\\d*):([1-9]\\d*)\\s*$",
16251625
"file": 1,
16261626
"line": 2,
16271627
"column": 3

0 commit comments

Comments
 (0)