Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MainCustomEditorModel

Implements

Index

Constructors

Properties

autoSave: "off" | "afterDelay" | "onFocusChange" | "onWindowChange"
autoSaveDelay: number
currentEditIndex: number = -1
edits: number[] = []
isDirtyFromContentChange: boolean = false
onDirtyChanged: Event<void> = ...
onDirtyChangedEmitter: Emitter<void> = ...
ongoingSave?: CancellationTokenSource
savePoint: number = -1
toDispose: DisposableCollection = ...
viewType: string

Accessors

  • get dirty(): boolean
  • get readonly(): boolean
  • get resource(): URI

Methods

  • change(makeEdit: (() => void)): void
  • changeContent(): void
  • dispose(): void
  • pushEdit(editId: number, label: undefined | string): void
  • redo(): Promise<void>
  • revert(options?: RevertOptions): Promise<void>
  • save(options?: SaveOptions): Promise<void>
  • saveCustomEditor(options?: SaveOptions): Promise<void>
  • saveCustomEditorAs(resource: URI, targetResource: URI, options?: SaveOptions): Promise<void>
  • spliceEdits(editToInsert?: number): void
  • undo(): Promise<void>