Protected ReadonlyastOptional ReadonlycompletionContains the completion options for this completion provider.
If multiple languages return different options, they are merged before being sent to the language client.
Protected ReadonlycompletionProtected ReadonlydocumentationProtected ReadonlyfuzzyProtected ReadonlygrammarProtected ReadonlygrammarProtected ReadonlylexerProtected ReadonlynameProtected ReadonlynodeProtected ReadonlyscopeProtectedbacktrackThis 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.
ProtectedbuildProtectedbuildProtectedcompletionProtectedcompletionProtectedcompletionProtectedcontinueIndicates whether the completion should continue to process the next completion context.
The default implementation continues the completion only if there are currently no proposed completion items.
ProtectedcreateOverride 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
Information about the reference for which the candidate is proposed
The completion context
A partial completion item
ProtecteddeduplicateThe 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.
ProtectedfillProtectedfilterProtectedfindProtectedfindHandle a completion request.
the document for which the completion request was triggered
the completion parameters
Optional_cancelToken: Cancellation.CancellationTokenProtectedgetProtectedgetOverride 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.
ProtectedgetProtectedperform
Language-specific service for handling completion requests.