From 03cc560f4ac18d28836c3647594fbcabc8160a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Fri, 2 Feb 2024 13:30:24 +0000 Subject: [PATCH] fix awaits --- helix-view/src/document.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)