Readonly
identifierUnique identifier of the provider
Optional
Readonly
rankRank 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
Readonly
rendererRenderer for provider's completions (optional).
Fetch completion requests.
the completion request text and details
additional information about context of completion request
Optional
trigger: CompletionTriggerKindWho triggered the request (optional).
Is completion provider applicable to specified context?
additional information about context of completion request
Optional
modelThis 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
Optional
resolveGiven 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
Optional
patch: null | IPatchThe text which will be injected if the completion item is selected.
Optional
shouldIf 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.
Optional
context: ICompletionContextThe context of the completer (optional).
The interface to implement a completion provider.