Commit 91dccf8d authored by ioedeveloper's avatar ioedeveloper

Wait for workspace initialization before registering menu items

parent b45fbdff
......@@ -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
})
})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment