We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustfmt
1 parent d3dfa18 commit d3b804dCopy full SHA for d3b804d
crates/rust-analyzer/src/handlers.rs
@@ -928,7 +928,10 @@ pub(crate) fn handle_formatting(
928
929
if !output.status.success() {
930
match output.status.code() {
931
- Some(1) if !captured_stderr.contains("not installed") => {
+ Some(1)
932
+ if !captured_stderr.contains("not installed")
933
+ && !captured_stderr.contains("not available") =>
934
+ {
935
// While `rustfmt` doesn't have a specific exit code for parse errors this is the
936
// likely cause exiting with 1. Most Language Servers swallow parse errors on
937
// formatting because otherwise an error is surfaced to the user on top of the
0 commit comments