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.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”string[]
Array of languages you want the completions to apply for.
definition
Section titled “definition”Defines the completion sources for the languages along with additional properties on the context passed to the completion sources.
Returns
Section titled “Returns”void