Interface CompletionContext

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.

The trigger character is already in the document when the completion provider is triggered.

How the completion was triggered.