Contains additional information about the context in which completion provider is triggered.

interface CompletionContext {
    triggerCharacter?: string;
    triggerKind: CompletionTriggerKind;
}

Properties

triggerCharacter?: string

Character that triggered the completion item provider.

undefined if provider was not triggered by a character.

How the completion was triggered.