mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-12 08:52:07 +00:00
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.
This commit is contained in:
parent
547bcf8bbf
commit
dd8ea977b7
1 changed files with 1 additions and 1 deletions
|
|
@ -1621,7 +1621,7 @@
|
||||||
"message": 3
|
"message": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
|
"regexp": "^[\\s->=]*(.*?):([1-9]\\d*):([1-9]\\d*)\\s*$",
|
||||||
"file": 1,
|
"file": 1,
|
||||||
"line": 2,
|
"line": 2,
|
||||||
"column": 3
|
"column": 3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue