diff options
author | Blaž Hrastnik | 2021-08-31 09:12:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-06 06:25:46 +0000 |
commit | 8744f367bdd3fce5e6cc6ee2b5198188598f5170 (patch) | |
tree | 1622ca3a54e6af8621b12c71c75c4c2927d60ff6 /helix-lsp | |
parent | d2b9a5d6546a97686338c26b21f886983a93d8f4 (diff) |
wip
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 02cd5747..ac6ae70a 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -148,7 +148,8 @@ impl Client { }) .map_err(|e| Error::Other(e.into()))?; - timeout(Duration::from_secs(2), rx.recv()) + // TODO: specifiable timeout, delay other calls until initialize success + timeout(Duration::from_secs(20), rx.recv()) .await .map_err(|_| Error::Timeout)? // return Timeout .ok_or(Error::StreamClosed)? |