We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed794b8 commit 8bc4664Copy full SHA for 8bc4664
apps/remix-ide/src/app/components/top-bar.tsx
@@ -52,10 +52,9 @@ export class Topbar extends Plugin {
52
}
53
54
async getWorkspaces() {
55
- while (this.workspaces.length === 0) {
56
- await new Promise(resolve => setTimeout(resolve, 100))
57
- this.workspaces = await this.call('filePanel', 'getWorkspaces')
58
- }
+ this.on('filePanel', 'setWorkspaces', (workspaces) => {
+ this.workspaces = workspaces
+ })
59
return this.workspaces
60
61
0 commit comments