Interface IWorkspacesModel

The model for listing available workspaces.

interface IWorkspacesModel {
    identifiers: string[];
    isDisposed: boolean;
    refreshed: ISignal<IWorkspacesModel, void>;
    workspaces: IWorkspace[];
    create(workspaceId): Promise<void>;
    dispose(): void;
    refresh(): Promise<void>;
    remove(workspaceId): Promise<void>;
    rename(workspaceId, newName): Promise<void>;
    reset(workspaceId): Promise<void>;
    saveAs(workspaceId, newName): Promise<void>;
}

Hierarchy

Implemented by

Properties

identifiers: string[]

The list of workspace identifiers.

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

refreshed: ISignal<IWorkspacesModel, void>

Signal emitted when the listing is refreshed.

workspaces: IWorkspace[]

The list of available workspaces.

Methods

  • 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