Type alias CompletionDefinition<T>

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

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.

Type Parameters

  • T extends object

Type declaration

Type declaration

Generated using TypeDoc