Skip to content

Commit

Permalink
fix(lsp): Remove client-facing format failure warning (#23196)
Browse files Browse the repository at this point in the history
Fixes #23163.

The client-facing warning doesn't provide any value and is super
annoying. We still emit a warning message on the server side for format
errors, which should fulfill the same (less intrusive) purpose.
  • Loading branch information
nathanwhit committed Apr 3, 2024
1 parent f76c38b commit 92a8ada
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cli/lsp/language_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,6 @@ impl Inner {
Ok(Some(text_edits))
}
} else {
self.client.show_message(MessageType::WARNING, format!("Unable to format \"{specifier}\". Likely due to unrecoverable syntax errors in the file."));
Ok(None)
}
}
Expand Down

0 comments on commit 92a8ada

Please sign in to comment.