Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompletionModel

An implementation of a completion model.

Hierarchy

  • CompletionModel

Implements

Index

Properties

Private _current

_current: ITextChange

Private _cursor

_cursor: object

Type declaration

Private _isDisposed

_isDisposed: boolean

Private _options

_options: string[]

Private _original

Private _query

_query: string

Accessors

current

cursor

isDisposed

  • get (): boolean

items

options

  • get (): string[]
  • set (newValue: string[]): void
  • The unfiltered list of all available options in a completion menu.

    Returns string[]

  • The unfiltered list of all available options in a completion menu.

    Parameters

    • newValue: string[]

    Returns void

original

stateChanged

Methods

Private _filter

createPatch

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

    Parameters

    • patch: string

      The patch string to apply to the original value.

    Returns ICompletionPatch

    A patched text change or null if original value did not exist.

    Notes

    The coords field is set to null because it is calculated by the editor, so a patched version cannot reliably produce accurate coordinates for the cursor.

dispose

  • dispose(): void

reset

  • reset(): void

Generated using TypeDoc