on master help sign in
wip
8744f36Blaž Hrastnik
helix-lsp/src/client.rs+2−1
@@ -148,7 +148,8 @@ impl Client {
148 })
148 })
149 .map_err(|e| Error::Other(e.into()))?;
149 .map_err(|e| Error::Other(e.into()))?;
150
150
151+ // TODO: specifiable timeout, delay other calls until initialize success
151− timeout(Duration::from_secs(2), rx.recv())
152+ timeout(Duration::from_secs(20), rx.recv())
152 .await
153 .await
153 .map_err(|_| Error::Timeout)? // return Timeout
154 .map_err(|_| Error::Timeout)? // return Timeout
154 .ok_or(Error::StreamClosed)?
155 .ok_or(Error::StreamClosed)?