Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkspaceFrontendContribution

Hierarchy

  • WorkspaceFrontendContribution

Implements

  • CommandContribution
  • KeybindingContribution
  • MenuContribution
  • FrontendApplicationContribution

Index

Constructors

Properties

contextKeyService: ContextKeyService
encodingRegistry: EncodingRegistry
fileDialogService: FileDialogService
fileService: FileService
messageService: MessageService
openerService: OpenerService
preferenceConfigurations: PreferenceConfigurations
quickOpenWorkspace: QuickOpenWorkspace
saveService: FilesystemSaveResourceService
toDisposeOnUpdateEncodingOverrides: DisposableCollection = ...
workspaceService: WorkspaceService

Methods

  • canBeSavedAs(widget: undefined | Widget): widget is Widget & SaveableSource & Navigatable
  • closeWorkspace(): Promise<void>
  • configure(): void
  • createMultiRootWorkspace(roots: FileStat[]): Promise<URI>
  • doOpen(): Promise<undefined | URI>
  • doOpenFile(): Promise<undefined | URI>
  • doOpenFolder(): Promise<undefined | URI>
  • Opens one or more folders after prompting the Open Folder dialog. Resolves to undefined, if

    • the user's selection is empty or contains only files.
    • the new workspace is equal to the old workspace.

    Otherwise, resolves to the URI of the new workspace:

    • a single folder if a single folder was selected.
    • a new, untitled workspace file if multiple folders were selected.

    Returns Promise<undefined | URI>

  • doOpenWorkspace(): Promise<undefined | URI>
  • doUpdateState(): "empty" | "workspace" | "folder"
  • getCurrentWorkspaceUri(): undefined | URI
  • getOpenableWorkspaceUri(uris: MaybeArray<URI>): Promise<undefined | URI>
  • isElectron(): boolean
  • onWillStop(): undefined | OnWillStopAction<boolean>
  • registerCommands(commands: CommandRegistry): void
  • registerKeybindings(keybindings: KeybindingRegistry): void
  • registerMenus(menus: MenuModelRegistry): void
  • saveAs(widget: Widget & SaveableSource & Navigatable): Promise<void>
  • saveWorkspaceAs(): Promise<boolean>
  • updateEncodingOverrides(): void
  • updateStyles(): void
  • updateWorkbenchStateKey(): "empty" | "workspace" | "folder"
  • updateWorkspaceStateKey(): "empty" | "workspace" | "folder"