on master help sign in
wip
commit8744f367bdd3fce5e6cc6ee2b5198188598f5170 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 31 Aug 2021, 18:12 (5 years ago) parentd2b9a5d
1 file changed+2−1
helix-lsp/src/client.rs+2−1
helix-lsp/src/client.rs+2−1
@@ -148,7 +148,8 @@ impl Client {
148148 })
149149 .map_err(|e| Error::Other(e.into()))?;
150150
151− timeout(Duration::from_secs(2), rx.recv())
151+ // TODO: specifiable timeout, delay other calls until initialize success
152+ timeout(Duration::from_secs(20), rx.recv())
152153 .await
153154 .map_err(|_| Error::Timeout)? // return Timeout
154155 .ok_or(Error::StreamClosed)?