ReadonlyidentifierUnique identifier of the provider
Optional ReadonlyrankRank used to order completion results from different completion providers.
CompletionProvider:kernel) use a rank of ≈500. If you want to give priority to your provider, use a rank of 1000 or above.
The rank is optional for backwards compatibility. If the rank is undefined,
it will assign a rank of [1, 499] making the provider available but with a
lower priority.
Optional ReadonlyrendererRenderer for provider's completions (optional).
Fetch completion requests.
the completion request text and details
additional information about context of completion request
Optionaltrigger: CompletionTriggerKindWho triggered the request (optional).
Is completion provider applicable to specified context?
additional information about context of completion request
OptionalmodelThis method is called to customize the model of a completer widget. If it is not provided, the default model will be used.
additional information about context of completion request
The completer model
OptionalresolveGiven an incomplete (unresolved) completion item, resolve it by adding all missing details, such as lazy-fetched documentation.
the completion item to resolve
The context of the completer
Optionalpatch: null | IPatchThe text which will be injected if the completion item is selected.
OptionalshouldIf users enable autoCompletion in setting, this method is
called on text changed event of CodeMirror to check if the
completion items should be shown.
Current visibility status of the completer widget
changed text.
Optionalcontext: ICompletionContextThe context of the completer (optional).
The interface to implement a completion provider.