provideInlineCompletionItems
abstract fun provideInlineCompletionItems(document: TextDocument, position: Position, context: InlineCompletionContext, token: CancellationToken): ProviderResult<JsAny>(source)
Provides inline completion items for the given position and document. If inline completions are enabled, this method will be called whenever the user stopped typing. It will also be called when the user explicitly triggers inline completions or explicitly asks for the next or previous inline completion. In that case, all available inline completions should be returned. context.triggerKind
can be used to distinguish between these scenarios.
Parameters
document
The document inline completions are requested for.
position
The position inline completions are requested for.
context
A context object with additional information.
token
A cancellation token.