Hierarchy

  • SaveableService
    • FilesystemSaveableService

Constructors

Properties

fileDialogService: FileDialogService
fileService: FileService
labelProvider: LabelProvider
messageService: MessageService
openerService: OpenerService

Methods

  • This method ensures a few things about widget:

    • widget.getResourceUri() actually returns a URI.
    • widget.saveable.createSnapshot or widget.saveable.serialize is defined.
    • widget.saveable.revert is defined.

    Parameters

    • widget: undefined | Widget

    Returns widget is Widget & SaveableSource & Navigatable

  • Save sourceWidget to a new file picked by the user.

    Parameters

    • sourceWidget: Widget & SaveableSource & Navigatable
    • Optional options: SaveOptions

    Returns Promise<undefined | URI>

  • Saves the current snapshot of the sourceWidget to the target file and replaces the widget with a new one that contains the snapshot content

    Parameters

    • sourceWidget: Widget & SaveableSource & Navigatable

      widget to save as target.

    • target: URI

      The new URI for the widget.

    • overwrite: boolean

    Returns Promise<void>