• Public
  • Public/Protected
  • All

Interface InlineCompletionContext

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


  • InlineCompletionContext



Readonly triggerKind

Describes how the inline completion was triggered.

Readonly selectedCompletionInfo

selectedCompletionInfo: undefined | 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.

Generated by TypeDoc. Maintained by 洛竹