Interface CompletionItemProvider

The completion item provider interface defines the contract between extensions and the IntelliSense.

When computing complete completion items is expensive, providers can optionally implement the resolveCompletionItem-function. In that case it is enough to return completion items with a label from the provideCompletionItems-function. Subsequently, when a completion item is shown in the UI and gains focus this provider is asked to resolve the item, like adding doc-comment or details.

interface CompletionItemProvider {
    triggerCharacters?: string[];
    provideCompletionItems(model, position, context, token): ProviderResult<CompletionList>;
    resolveCompletionItem?(item, token): ProviderResult<CompletionItem>;
}

Properties

triggerCharacters?: string[]

Methods