Event triggered by extensions to signal to the editor that an edit has occurred on an {@linkcode CustomDocument }.
Event triggered by extensions to signal to the editor that an edit has occurred on an {@linkcode CustomDocument }.
(document custom-document-edit-event)The document that the edit is for.
Returns: T
The document that the edit is for. **Returns:** `T`
(label custom-document-edit-event)Display name describing the edit.
This will be shown to users in the UI for undo/redo operations.
Returns: string | undefined
Display name describing the edit. This will be shown to users in the UI for undo/redo operations. **Returns:** `string | undefined`
(redo custom-document-edit-event)Redo the edit operation.
This is invoked by the editor when the user redoes this edit. To implement redo, your
extension should restore the document and editor to the state they were in just after this
edit was added to the editor's internal edit stack by onDidChangeCustomDocument.
Returns: void | Thenable<void>
Redo the edit operation. This is invoked by the editor when the user redoes this edit. To implement `redo`, your extension should restore the document and editor to the state they were in just after this edit was added to the editor's internal edit stack by `onDidChangeCustomDocument`. **Returns:** `void | Thenable<void>`
(undo custom-document-edit-event)Undo the edit operation.
This is invoked by the editor when the user undoes this edit. To implement undo, your
extension should restore the document and editor to the state they were in just before this
edit was added to the editor's internal edit stack by onDidChangeCustomDocument.
Returns: void | Thenable<void>
Undo the edit operation. This is invoked by the editor when the user undoes this edit. To implement `undo`, your extension should restore the document and editor to the state they were in just before this edit was added to the editor's internal edit stack by `onDidChangeCustomDocument`. **Returns:** `void | Thenable<void>`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |