diff options
author | Gabriel Berto | 2021-12-25 10:00:57 +0000 |
---|---|---|
committer | GitHub | 2021-12-25 10:00:57 +0000 |
commit | 5d7b5db8ab284e0c2a41e6fbda08857f87406780 (patch) | |
tree | c88e8409db4ab80471f9c6374de1bd7b517e1d01 /helix-lsp | |
parent | 0e7d757869bbae914a7e832e2511c2071eeacee5 (diff) |
Resolve completion item (#1315)
Co-authored-by: Gabriel Berto <gabriel.berto@pottencial.com.br>
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/client.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index f1de8752..43804daa 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -556,6 +556,14 @@ impl Client { self.call::<lsp::request::Completion>(params) } + pub async fn resolve_completion_item( + &self, + completion_item: lsp::CompletionItem, + ) -> Result<lsp::CompletionItem> { + self.request::<lsp::request::ResolveCompletionItem>(completion_item) + .await + } + pub fn text_document_signature_help( &self, text_document: lsp::TextDocumentIdentifier, |