Wait for workspace initialization before registering menu items

pull/5370/head
ioedeveloper 3 years ago
parent b50050fe04
commit 0c4104a2bd
  1. 2
      apps/remix-ide/src/remixAppManager.js

@ -135,6 +135,7 @@ export class RemixAppManager extends PluginManager {
}
async registerContextMenuItems () {
this.on('filePanel', 'workspaceInitializationCompleted', async () => {
await this.call('filePanel', 'registerContextMenuItem', {
id: 'flattener',
name: 'flattenFileCustomAction',
@ -155,6 +156,7 @@ export class RemixAppManager extends PluginManager {
pattern: [],
sticky: true
})
})
}
}

Loading…
Cancel
Save