A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/lsp/client.rs')
| -rw-r--r-- | src/lsp/client.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lsp/client.rs b/src/lsp/client.rs index 65225db..3c5dc93 100644 --- a/src/lsp/client.rs +++ b/src/lsp/client.rs @@ -554,6 +554,27 @@ impl Client { }) .map(fst) } + + pub fn go_to_references( + &self, + tdpp: TextDocumentPositionParams, + ) -> Result< + impl Future< + Output = Result< + Option<Vec<Location>>, + RequestError<References>, + >, + >, + SendError<Message>, + > { + self.request::<References>(&ReferenceParams { + text_document_position: tdpp, + work_done_progress_params: default(), + partial_result_params: default(), + context: ReferenceContext { include_declaration: false }, + }) + .map(fst) + } } pub trait PathURI { |