aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src/lib.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-06 08:15:49 +0000
committerBlaž Hrastnik2021-05-06 08:15:49 +0000
commitba970054957238cb682ae3be022b675131beb6f8 (patch)
tree92fcbcc733fdccb79b1746ed1286f6d01c49daeb /helix-lsp/src/lib.rs
parentd00414f81a49501277642868c2cf76eefeb0db6b (diff)
Work around the rest of the blocking issues.
Diffstat (limited to 'helix-lsp/src/lib.rs')
-rw-r--r--helix-lsp/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index fd7e6fd3..6adaa3f8 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -203,8 +203,7 @@ impl Registry {
Client::start(&config.command, &config.args).ok()?;
// TODO: run this async without blocking
- let rt = tokio::runtime::Handle::current();
- rt.block_on(client.initialize()).unwrap();
+ futures_executor::block_on(client.initialize()).unwrap();
s_incoming.push(UnboundedReceiverStream::new(incoming));