Provides information about the context in which an inline completion was requested.

Fields

read onlytriggerKind:InlineCompletionTriggerKind

Describes how the inline completion was triggered.

read onlyselectedCompletionInfo:Null<SelectedCompletionInfo>

Provides information about the currently selected item in the autocomplete widget if it is visible.

If set, provided inline completions must extend the text of the selected item and use the same range, otherwise they are not shown as preview. As an example, if the document text is console. and the selected item is .log replacing the . in the document, the inline completion must also replace . and start with .log, for example .log().

Inline completion providers are requested again whenever the selected item changes.