Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CustomDocumentEditEvent<T>

Event triggered by extensions to signal to the editor that an edit has occurred on an CustomDocument.

see

CustomEditorProvider.onDidChangeCustomDocument.

Type parameters

层级

  • CustomDocumentEditEvent

索引

Properties(2)

Methods(2)

Properties(2)

Readonly document

document: T

The document that the edit is for.

Optional Readonly label

label: string

Display name describing the edit.

This will be shown to users in the UI for undo/redo operations.

Methods(2)

undo

  • 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>

redo

  • 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>

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹