(workspaceId: number)
| 54 | destroyWorkspace(workspaceId: number): boolean { |
| 55 | const entry = this.store.get(workspaceId); |
| 56 | if (!entry) { |
| 57 | return false; |
| 58 | } |
| 59 | this.store.delete(workspaceId); |
| 60 | entry.activeWorkspace.destroy(); |
| 61 | return true; |
| 62 | } |
| 63 | |
| 64 | destroyAllWorkspaces(): void { |
| 65 | const allWorkspaceIds = [...this.store.keys()]; |
| 66 | allWorkspaceIds.forEach((workspaceId) => this.destroyWorkspace(workspaceId)); |
| 67 | } |
| 68 | |
| 69 | private getEntry(workspaceId: number): StoreEntry { |
no test coverage detected