This class is responsible for providing completions and inserting them to the editor

Constructors

  • Parameters

    • initialPosition: {
          pos: Point;
          prefix: string;
      }
      • pos: Point
      • prefix: string

    Returns CompletionProvider

Properties

active: boolean
completers: Completer[]
initialPosition: {
    pos: Point;
    prefix: string;
}

Type declaration

  • pos: Point
  • prefix: string

Methods

  • Parameters

    • editor: Editor
    • callback: CompletionCallbackFunction

    Returns boolean

  • Parameters

    • editor: Editor
    • index: number
    • Optional options: CompletionProviderOptions

    Returns boolean

  • Parameters

    • editor: Editor
    • data: Completion
    • Optional options: CompletionProviderOptions

    Returns boolean

  • This is the entry point to the class, it gathers, then provides the completions asynchronously via callback. The callback function may be called multiple times, the last invokation is marked with a finished flag

    Parameters

    • editor: Editor
    • options: CompletionProviderOptions
    • callback: ((err, completions, finished) => void)
        • (err, completions, finished): void
        • Parameters

          Returns void

    Returns void

Generated using TypeDoc