Interface InlineCompletionsProvider<T>
Hierarchy
- InlineCompletionsProvider
Methods
freeInlineCompletions
- freeInlineCompletions(completions: T): void
Optional handleItemDidShow
- handleItemDidShow(completions: T, item: T["items"][number]): void
Parameters
completions: T
item: T["items"][number]
Returns void
provideInlineCompletions
- provideInlineCompletions(model: ITextModel, position: Position, context: InlineCompletionContext, token: CancellationToken): undefined | T[] | Thenable<undefined | T[]>
Parameters
model: ITextModel
position: Position
token: CancellationToken
Returns undefined | T[] | Thenable<undefined | T[]>
Will be called when a completions list is no longer in use and can be garbage-collected.