feat: change the order of load workspaces

This commit is contained in:
MingLiang Wang
2023-01-10 20:11:46 +08:00
parent b4571539ac
commit 104693916f
4 changed files with 13 additions and 10 deletions
@@ -18,7 +18,7 @@ export interface WorkspaceUnitCollectionScope {
}
export interface WorkspaceUnitCollectionChangeEvent {
added?: WorkspaceUnit;
added?: WorkspaceUnit[];
deleted?: WorkspaceUnit;
updated?: WorkspaceUnit;
}
@@ -71,7 +71,7 @@ export class WorkspaceUnitCollection {
this._events.emit('change', [
{
added: workspaceUnit,
added: [workspaceUnit],
} as WorkspaceUnitCollectionChangeEvent,
]);
};