Model for inline completions.

interface IModel {
    completions: null | IInlineCompletionList<IInlineItem>;
    cursor: IPosition;
    filterTextChanged: ISignal<InlineCompleter.IModel, IndexMap>;
    isDisposed: boolean;
    provisionProgress: ISignal<InlineCompleter.IModel, IProvisionProgress>;
    suggestionsChanged: ISignal<InlineCompleter.IModel, ISuggestionsChangedArgs>;
    appendCompletions(reply): void;
    dispose(): void;
    handleSelectionChange(range): void;
    handleTextChange(change): void;
    notifyProgress(providerProgress): void;
    reset(): void;
    setCompletions(reply): void;
}

Hierarchy

Implemented by

Properties

completions: null | IInlineCompletionList<IInlineItem>

Current inline completions.

cursor: IPosition

Original placement of cursor.

filterTextChanged: ISignal<InlineCompleter.IModel, IndexMap>

A signal emitted when filter text is updated. Emits a mapping from old to new index for items after filtering.

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

A signal emitted when new information about progress is available.

A signal emitted when new suggestions are set on the model.

Methods

  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void