From cf558bf663d0f886c7290cd42b465f5d00c67334 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 59aef15151b43..de8d377f3473f 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -891,7 +891,7 @@ impl Document { }); } - helix_lsp::block_on(future::join_all(notifications)); + future::join_all(notifications).await; } }; @@ -938,7 +938,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:?}" ); @@ -947,7 +947,7 @@ impl Document { } } - helix_lsp::block_on(future::join_all(notifications)); + future::join_all(notifications).await; } Ok(event)