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

Method inlay_hint_request

src/inlay_hints.rs:29–40  ·  view source on GitHub ↗

Entry point for the `textDocument/inlayHint` request. Called by the native [`LanguageServer::inlay_hint`] trait method (available since `tower-lsp` 0.19).

(
        &self,
        params: InlayHintParams,
    )

Source from the content-addressed store, hash-verified

27 /// Called by the native [`LanguageServer::inlay_hint`] trait method
28 /// (available since `tower-lsp` 0.19).
29 pub async fn inlay_hint_request(
30 &self,
31 params: InlayHintParams,
32 ) -> jsonrpc::Result<Option<Vec<InlayHint>>> {
33 let uri = params.text_document.uri.to_string();
34 let range = params.range;
35 let result = self.with_file_content("textDocument/inlayHint", &uri, None, |content, _| {
36 self.handle_inlay_hints(&uri, content, range)
37 });
38
39 Ok(result.flatten())
40 }
41
42 /// Handle a `textDocument/inlayHint` request.
43 ///

Callers 1

inlay_hintMethod · 0.80

Calls 2

with_file_contentMethod · 0.80
handle_inlay_hintsMethod · 0.80

Tested by

no test coverage detected