Fire a completion request at the given position.
(backend: &Backend, uri: &Url, line: u32, character: u32)
| 47 | |
| 48 | /// Fire a completion request at the given position. |
| 49 | async fn fire_completion(backend: &Backend, uri: &Url, line: u32, character: u32) { |
| 50 | let params = CompletionParams { |
| 51 | text_document_position: TextDocumentPositionParams { |
| 52 | text_document: TextDocumentIdentifier { uri: uri.clone() }, |
| 53 | position: Position { line, character }, |
| 54 | }, |
| 55 | work_done_progress_params: WorkDoneProgressParams::default(), |
| 56 | partial_result_params: PartialResultParams::default(), |
| 57 | context: None, |
| 58 | }; |
| 59 | let _ = black_box(backend.completion(params).await); |
| 60 | } |
| 61 | |
| 62 | /// Fire a hover request at the given position. |
| 63 | async fn fire_hover(backend: &Backend, uri: &Url, line: u32, character: u32) { |
no test coverage detected