Interface WorkspaceChangeEmitterBeta

Interface representing a workspace change emitter.

interface WorkspaceChangeEmitter {
    onOpenWorkspacesChanged: AddListener<Workspace[]>;
    onWorkspaceChanged: ((ws: WorkspaceIdentifier<any>, callback: Callback<Workspace>) => Promise<Unsubscribe>);
    onWorkspaceItemChanged: ((item: WorkspaceItemIdentifier<any>, callback: Callback<WorkspaceItem<any>>) => Promise<Unsubscribe>);
}

Hierarchy (view full)

Properties

onOpenWorkspacesChanged: AddListener<Workspace[]>

Subscribes to changes for the currently open workspaces.

The callback to invoke with the current open workspaces.

A promise that resolves to an unsubscribe function.

onWorkspaceChanged: ((ws: WorkspaceIdentifier<any>, callback: Callback<Workspace>) => Promise<Unsubscribe>)

Subscribes to changes for a given workspace.

Type declaration

onWorkspaceItemChanged: ((item: WorkspaceItemIdentifier<any>, callback: Callback<WorkspaceItem<any>>) => Promise<Unsubscribe>)

Subscribes to changes for a given workspace item.

Type declaration