mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Ignore errors from rustfmt which may trigger error notification
This commit is contained in:
parent
8365cf853e
commit
5abe9e66b0
1 changed files with 5 additions and 1 deletions
|
|
@ -2418,7 +2418,11 @@ fn run_rustfmt(
|
|||
Ok(None)
|
||||
}
|
||||
// rustfmt panicked at lexing/parsing the file
|
||||
Some(101) if !rustfmt_not_installed && captured_stderr.starts_with("error[") => {
|
||||
Some(101)
|
||||
if !rustfmt_not_installed
|
||||
&& (captured_stderr.starts_with("error[")
|
||||
|| captured_stderr.starts_with("error:")) =>
|
||||
{
|
||||
Ok(None)
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue