The data model backing a code completer widget.

Hierarchy

Implemented by

Properties

current: ITextState

The current text state details.

cursor: ICursorSpan

The cursor details that the API has used to return matching options.

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

original: ITextState

The original completer request details.

query: string

The query against which items are filtered.

A signal emitted when query string changes (at invocation, or as user types).

stateChanged: ISignal<Completer.IModel, void>

A signal emitted when state of the completer model changes.

subsetMatch: boolean

A flag that is true when the model value was modified by a subset match.

Methods

  • Get the list of visible CompletionItems in the completer menu.

    Returns ICompletionItems

  • Create a resolved patch between the original state and a patch string.

    Parameters

    • patch: string

    Returns IPatch

  • 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

  • Handle a cursor change.

    Parameters

    Returns void

  • Handle a completion request.

    Parameters

    Returns void

  • An ordered list of types used for visual encoding.

    Returns string[]

  • Reset the state of the model and emit a state change signal.

    Parameters

    • Optional hard: boolean

      Reset even if a subset match is in progress.

    Returns void

  • Lazy load missing data of an item.

    Remarks

    Resolving item by index will be deprecated in the next major release.

    Parameters

    Returns Promise<ICompletionItem>

    Return undefined if the completion item with activeIndex index can not be found. Return a promise of null if another resolveItem is called. Otherwise return the promise of resolved completion item.

  • Set the list of visible CompletionItems in the completer menu.

    Parameters

    Returns void

  • The map from identifiers (a.b) to their types (function, module, class, instance, etc.).

    Returns TypeMap

Generated using TypeDoc