Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CustomTextEditorModel

Implements

Index

Constructors

  • new CustomTextEditorModel(viewType: string, editorResource: URI, model: Reference<MonacoEditorModel>, fileService: FileService): CustomTextEditorModel

Properties

editorResource: URI
onDirtyChanged: Event<void> = ...
onDirtyChangedEmitter: Emitter<void> = ...
toDispose: DisposableCollection = ...
viewType: string

Accessors

  • get autoSave(): "off" | "afterDelay" | "onFocusChange" | "onWindowChange"
  • get autoSaveDelay(): number
  • get dirty(): boolean
  • get editorTextModel(): MonacoEditorModel
  • get readonly(): boolean
  • get resource(): URI

Methods

  • dispose(): 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>