MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / fire_completion

Function fire_completion

benches/completion.rs:49–60  ·  view source on GitHub ↗

Fire a completion request at the given position.

(backend: &Backend, uri: &Url, line: u32, character: u32)

Source from the content-addressed store, hash-verified

47
48/// Fire a completion request at the given position.
49async 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.
63async fn fire_hover(backend: &Backend, uri: &Url, line: u32, character: u32) {

Calls 2

cloneMethod · 0.80
completionMethod · 0.80

Tested by

no test coverage detected