CompletionItemProvider

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

Providers can delay the computation of the {@linkcode CompletionItem.detail detail} and {@linkcode CompletionItem.documentation documentation} properties by implementing the {@linkcode CompletionItemProvider.resolveCompletionItem resolveCompletionItem}-function. However, properties that are needed for the initial sorting and filtering, like sortText, filterText, insertText, and range, must not be changed during resolve.

Providers are asked for completions either explicitly by a user gesture or -depending on the configuration- implicitly when typing words or trigger characters.

Online Documentation

Properties

Link copied to clipboard
abstract var resolveCompletionItem: (item: T, token: CancellationToken) -> ProviderResult<T>?

Given a completion item fill in more data, like doc-comment or details.

Functions

Link copied to clipboard

Provide completion items for the given position and document.