interface BaseCompletion {
    caption: string;
    command: string;
    completer: Completer & {
        insertMatch: ((editor, data) => void);
    };
    completerId: string;
    docHTML: string;
    docText: string;
    hideInlinePreview: boolean;
    meta: string;
    range: IRange;
    score: number;
    snippet: string;
    value: string;
}

Properties

caption: string

the text that would be displayed in the completion list. If omitted, value or snippet would be shown instead.

command: string

A command to be executed after the completion is inserted (experimental)

completer: Completer & {
    insertMatch: ((editor, data) => void);
}

Type declaration

  • insertMatch: ((editor, data) => void)
      • (editor, data): void
      • Parameters

        Returns void

completerId: string

the identifier of the completer

docHTML: string

an HTML string that would be displayed as an additional popup

docText: string

a plain text that would be displayed as an additional popup. If docHTML exists, it would be used instead of docText.

hideInlinePreview: boolean
meta: string

a short description of the completion

range: IRange

An object specifying the range of text to be replaced with the new completion value (experimental)

score: number

a numerical value that determines the order in which completions would be displayed. A lower score means that the completion would be displayed further from the start

snippet: string

a text snippet that would be inserted when the completion is selected

value: string

The text that would be inserted when selecting this completion.

Generated using TypeDoc