summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-04-02 19:10:40 -0700
committerGitHub <noreply@github.com>2024-04-02 19:10:40 -0700
commit92a8ada7194ac013f8c34824f435f09b1f52ca5b (patch)
treefa5cf0893bae38729e3f2ed784055e183deb051a /cli
parentf76c38b13e6c9427e1b426dec160064aef985b08 (diff)
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.
Diffstat (limited to 'cli')
-rw-r--r--cli/lsp/language_server.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index 8348bd95f..031b53e7d 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -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)
}
}