Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISharedFile

Text/Markdown/Code files are represented as ISharedFile

Hierarchy

Implemented by

Index

Properties

Readonly changed

changed: ISignal<ISharedFile, FileChange>

The changed signal.

Readonly isDisposed

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

Methods

canRedo

  • canRedo(): boolean

canUndo

  • canUndo(): boolean

clearUndoHistory

  • clearUndoHistory(): void

dispose

  • dispose(): void
  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

getSource

  • getSource(): string

redo

  • redo(): void

setSource

  • setSource(value: string): void

transact

  • transact(f: () => void): void

undo

  • undo(): void

updateSource

  • updateSource(start: number, end: number, value?: string): void

Generated using TypeDoc