mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #20096 from lnicola/silence-rustfmt-failed
internal: Don't show notifications on failed rustfmt calls
This commit is contained in:
commit
749288e0de
@ -2433,17 +2433,14 @@ fn run_rustfmt(
|
|||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
// Something else happened - e.g. `rustfmt` is missing or caught a signal
|
// Something else happened - e.g. `rustfmt` is missing or caught a signal
|
||||||
Err(LspError::new(
|
tracing::error!(
|
||||||
-32900,
|
?command,
|
||||||
format!(
|
%output.status,
|
||||||
r#"rustfmt exited with:
|
%captured_stdout,
|
||||||
Status: {}
|
%captured_stderr,
|
||||||
stdout: {captured_stdout}
|
"rustfmt failed"
|
||||||
stderr: {captured_stderr}"#,
|
);
|
||||||
output.status,
|
Ok(None)
|
||||||
),
|
|
||||||
)
|
|
||||||
.into())
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user