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 : Lean.Name) : Lean.Lsp.CompletionIdentifier
- fvar (id : Lean.FVarId) : Lean.Lsp.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.
Instances For
def
Lean.Lsp.CompletionItem.resolve
(item : Lean.Lsp.CompletionItem)
(id : Lean.Lsp.CompletionIdentifier)
:
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 : Lean.FileMap)
(hoverPos : String.Pos)
(cmdStx : Lean.Syntax)
(infoTree : Lean.Elab.InfoTree)
(item : Lean.Lsp.CompletionItem)
(id : Lean.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.