Skip to content

registerCompletions

registerCompletions<T>(langs, definition): void

Defined in: extensions/autocomplete/tooltip.ts:44

Registers completion sources for a set of languages. If any of the languages already have completion sources, they’re overridden.

T extends object

string[]

Array of languages you want the completions to apply for.

CompletionDefinition<T>

Defines the completion sources for the languages along with additional properties on the context passed to the completion sources.

void