Skip to content

CompletionDefinition

CompletionDefinition<T> = { context?: null; sources: CompletionSource[]; } | { sources: CompletionSource<T>[]; context: T; }

Defined in: extensions/autocomplete/types.ts:113

Completion definition for a language.

The context property can be used to add extra properties to the context passed to the completion sources. This is useful to do certain computations once instead of once for each source.

T extends object