Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FilesystemSaveResourceService

Hierarchy

  • SaveResourceService
    • FilesystemSaveResourceService

Index

Constructors

Properties

fileDialogService: FileDialogService
fileService: FileService
openerService: OpenerService

Methods

  • canSaveAs(widget: undefined | Widget): widget is Widget & SaveableSource & Navigatable
  • This method ensures a few things about widget:

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

    Parameters

    • widget: undefined | Widget

    Returns widget is Widget & SaveableSource & Navigatable

  • confirmOverwrite(uri: URI): Promise<boolean>
  • copyAndSave(sourceWidget: Widget & SaveableSource & Navigatable, target: URI, overwrite: boolean): Promise<void>
  • isElectron(): boolean
  • saveAs(sourceWidget: Widget & SaveableSource & Navigatable, options?: SaveOptions): Promise<void>