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.
CompletionItemData
that also contains a CompletionIdentifier
.
See the documentation ofCompletionItemData
and CompletionIdentifier
.
- params : Lean.Lsp.CompletionParams
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.
Cached header declarations for which allowCompletion headerEnv decl
is true.
Returns the declarations in the header for which allowCompletion env decl
is true, caching them
if not already cached.
Equations
- One or more equations did not get rendered due to their size.
Intermediate state while completions are being computed.
- items : Array (Lean.Lsp.CompletionItem × Float)
All completion items and their fuzzy match scores so far.
Monad used for completion computation that allows modifying a completion State
and reading
CompletionParams
.
- after: Lean.Server.Completion.HoverInfo
- inside: Nat → Lean.Server.Completion.HoverInfo
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Compares n₁
and n₂
modulo private prefixes. Similar to Name.cmp
but ignores all
private prefixes in both names.
Necessary because the namespaces of private names do not contain private prefixes.
NameSet
where names are compared according to cmpModPrivate
.
Helps speed up dot completion because it allows us to look up names without first having to
strip the private prefix from deep in the name, letting us reject most names without
having to scan the full name first.
Equations
- One or more equations did not get rendered due to their size.
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.