mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
Handle partial failure when sending textDocument/didSave (#10168)
This commit is contained in:
parent
d3bfa3e063
commit
3f2de21342
@ -961,13 +961,14 @@ impl Document {
|
||||
|
||||
for (_, language_server) in language_servers {
|
||||
if !language_server.is_initialized() {
|
||||
return Ok(event);
|
||||
continue;
|
||||
}
|
||||
if let Some(identifier) = &identifier {
|
||||
if let Some(notification) =
|
||||
language_server.text_document_did_save(identifier.clone(), &text)
|
||||
if let Some(notification) = identifier
|
||||
.clone()
|
||||
.and_then(|id| language_server.text_document_did_save(id, &text))
|
||||
{
|
||||
notification.await?;
|
||||
if let Err(err) = notification.await {
|
||||
log::error!("Failed to send textDocument/didSave: {err}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user