diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index a5192d874d58..907051aa5b74 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -892,7 +892,7 @@ impl Document { }); } - helix_lsp::block_on(future::join_all(notifications)); + future::join_all(notifications).await; } }; @@ -939,7 +939,7 @@ impl Document { }; notifications.push(async move { - if let Err(err) = helix_lsp::block_on(notification) { + if let Err(err) = notification.await { log::error!( "failed to send textDocument/didSave notification: {err:?}" ); @@ -948,7 +948,7 @@ impl Document { } } - helix_lsp::block_on(future::join_all(notifications)); + future::join_all(notifications).await; } Ok(event)