Identifier that is sent from the server to the client as part of the CompletionItem.data? field.
Needed to resolve the CompletionItem when the client sends a completionItem/resolve request
for that item, again containing the data? field provided by the server.
- const (declName : Name) : CompletionIdentifier
- fvar (id : FVarId) : CompletionIdentifier
Instances For
CompletionItemData that contains additional information to identify the item
in order to resolve it.
- cPos : Nat
Position of the completion info that this completion item was created from.
- id? : Option CompletionIdentifier
Instances For
Fills the CompletionItem.detail? field of item using the pretty-printed type identified by id.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.Completion.resolveCompletionItem?
(fileMap : FileMap)
(hoverPos : String.Pos)
(cmdStx : Syntax)
(infoTree : Elab.InfoTree)
(item : Lsp.CompletionItem)
(id : Lsp.CompletionIdentifier)
(completionInfoPos : Nat)
:
Fills the CompletionItem.detail? field of item using the pretty-printed type identified by id
in the context found at hoverPos in infoTree.
Equations
- One or more equations did not get rendered due to their size.