Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISharedDocument

Implement an API for Context information on the shared information. This is used by, for example, docregistry to share the file-path of the edited content.

Hierarchy

Implemented by

Index

Properties

Readonly changed

changed: ISignal<ISharedDocument, DocumentChange>

The changed signal.

Readonly dirty

dirty: boolean

Whether the document is saved to disk or not.

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

redo

  • redo(): void

transact

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

undo

  • undo(): void

Generated using TypeDoc