Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-lsp/src/client.rs')
| -rw-r--r-- | helix-lsp/src/client.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index d6308997..bf8a8695 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -1119,7 +1119,7 @@ impl Client { text_document: lsp::TextDocumentIdentifier, position: lsp::Position, work_done_token: Option<lsp::ProgressToken>, - ) -> Option<impl Future<Output = Result<Value>>> { + ) -> Option<impl Future<Output = Result<Option<lsp::Hover>>>> { let capabilities = self.capabilities.get().unwrap(); // Return early if the server does not support hover. @@ -1140,7 +1140,8 @@ impl Client { // lsp::SignatureHelpContext }; - Some(self.call::<lsp::request::HoverRequest>(params)) + let res = self.call::<lsp::request::HoverRequest>(params); + Some(async move { Ok(serde_json::from_value(res.await?)?) }) } // formatting |