interface DocumentEvents {
    change: ((e) => void);
    changeNewLineMode: (() => void);
}

Properties

change: ((e) => void)

Fires whenever the document changes. Several methods trigger different "change" events. Below is a list of each action type, followed by each property that's also available:

  • "insert"
    • range: the [[Range]] of the change within the document
    • lines: the lines being added
  • "remove"
    • range: the [[Range]] of the change within the document
    • lines: the lines being removed

Type declaration

    • (e): void
    • Fires whenever the document changes. Several methods trigger different "change" events. Below is a list of each action type, followed by each property that's also available:

      • "insert"
        • range: the [[Range]] of the change within the document
        • lines: the lines being added
      • "remove"
        • range: the [[Range]] of the change within the document
        • lines: the lines being removed

      Parameters

      Returns void

changeNewLineMode: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc