fix: ensure return activeWorkspaceId

This commit is contained in:
DiamondThree committed 2023-01-10 21:08:28 +08:00
1 parent f1ea2ee691
commit ed46eb58fd
6 files changed
+15 -13

No files matched your search

@@ -41,7 +41,7 @@ export class WorkspaceMetaCollection extends Observable<'change'> {
if (this._workspacesMap.has(workspace.id)) {
throw new Error(`Duplicate workspace id.`);
}
this._workspacesMap.set(workspace.id, workspace);
this._workspacesMap.set(workspace.id.toString(), workspace);
scopedWorkspaceIds.add(workspace.id);
this.emit('change', [