There was an error while loading. Please reload this page.
1 parent d3bfa3e commit 3f2de21Copy full SHA for 3f2de21
1 file changed
helix-view/src/document.rs
@@ -961,13 +961,14 @@ impl Document {
961
962
for (_, language_server) in language_servers {
963
if !language_server.is_initialized() {
964
- return Ok(event);
+ continue;
965
}
966
- if let Some(identifier) = &identifier {
967
- if let Some(notification) =
968
- language_server.text_document_did_save(identifier.clone(), &text)
969
- {
970
- notification.await?;
+ if let Some(notification) = identifier
+ .clone()
+ .and_then(|id| language_server.text_document_did_save(id, &text))
+ {
+ if let Err(err) = notification.await {
971
+ log::error!("Failed to send textDocument/didSave: {err}");
972
973
974
0 commit comments