Protected
Readonly
astOptional
Readonly
completionContains the completion options for this completion provider.
If multiple languages return different options, they are merged before being sent to the language client.
Protected
Readonly
completionProtected
Readonly
documentationProtected
Readonly
fuzzyProtected
Readonly
grammarProtected
Readonly
grammarProtected
Readonly
lexerProtected
Readonly
nameProtected
Readonly
nodeProtected
Readonly
scopeProtected
backtrackThis method returns two sets of token offset information.
The nextToken*
offsets are related to the token at the cursor position.
If there is none, both offsets are simply set to offset
.
The previousToken*
offsets are related to the last token before the current token at the cursor position.
They are undefined
, if there is no token before the cursor position.
Protected
buildProtected
buildProtected
completionProtected
completionProtected
completionProtected
continueProtected
createOverride this method to change how reference completion items are created.
To change the kind
of a completion item, override the NodeKindProvider
service instead.
To change the documentation
, override the DocumentationProvider
service instead.
The description of a reference candidate
A partial completion item
Protected
deduplicateThe completion algorithm could yield the same reference/keyword multiple times.
This methods deduplicates these items afterwards before returning to the client.
Unique items are identified as a combination of kind
, label
and detail
.
Protected
fillProtected
filterProtected
findProtected
findHandle a completion request.
the document for which the completion request was triggered
the completion parameters
Optional
_cancelToken: CancellationTokenProtected
getProtected
getOverride this method to change how the stream of candidates is determined for a reference. This way completion-specific modifications and refinements can be added to the proposals computation beyond the rules being implemented in the scope provider, e.g. filtering.
Information about the reference for which the candidates are requested.
Information about the completion request including document, cursor position, token under cursor, etc.
A stream of all elements being valid for the given reference.
Protected
getProtected
perform
Language-specific service for handling completion requests.