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.

Hierarchy

  • CompletionItemProvider

Index

Properties

Optional triggerCharacters

triggerCharacters: string[]

Methods

provideCompletionItems

Optional resolveCompletionItem