Skip to content

Commit 3cc1099

Browse files
observerwCopilot
andauthored
Update src/lsp_client/capability/request/inlay_hint.py
Co-authored-by: Copilot <[email protected]>
1 parent 84bfa36 commit 3cc1099

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/lsp_client/capability/request/inlay_hint.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ async def request_inlay_hint_resolve(
106106
self,
107107
hint: lsp_type.InlayHint,
108108
) -> lsp_type.InlayHint:
109+
"""
110+
Resolve additional details for a previously returned inlay hint.
111+
112+
This sends an LSP ``inlayHint/resolve`` request to the server for the
113+
given ``hint``. Servers may initially return inlay hints with only a
114+
subset of properties populated and require a subsequent resolve
115+
request to fill in optional fields such as tooltips, locations, or
116+
text edits.
117+
118+
:param hint: An :class:`lsp_type.InlayHint` instance obtained from a
119+
prior ``textDocument/inlayHint`` request that should be fully
120+
resolved by the server.
121+
:return: A new :class:`lsp_type.InlayHint` containing any additional
122+
data supplied by the server.
123+
"""
109124
return await self.request(
110125
lsp_type.InlayHintResolveRequest(
111126
id=jsonrpc_uuid(),

0 commit comments

Comments
 (0)