1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

fix(lsp): Remove client-facing format failure warning (#23196)

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.
This commit is contained in:
Nathan Whitaker 2024-04-02 19:10:40 -07:00 committed by GitHub
parent f76c38b13e
commit 92a8ada719
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1576,7 +1576,6 @@ impl Inner {
Ok(Some(text_edits)) Ok(Some(text_edits))
} }
} else { } else {
self.client.show_message(MessageType::WARNING, format!("Unable to format \"{specifier}\". Likely due to unrecoverable syntax errors in the file."));
Ok(None) Ok(None)
} }
} }