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,
)
| 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 | /// |
no test coverage detected