fix
This commit is contained in:
@@ -33,17 +33,12 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
|
||||
type: 'call'
|
||||
},
|
||||
{
|
||||
name: "getInstalledPlugins",
|
||||
name: "getInstalledPluginNames",
|
||||
visibility: "private",
|
||||
rpc: async() => { return await this.getInstalledPlugins() },
|
||||
rpc: async() => { return await this.getInstalledPluginNames() },
|
||||
type: 'call'
|
||||
},
|
||||
{
|
||||
name: "getLoadedPlugins",
|
||||
visibility: "private",
|
||||
rpc: async () => { return this.getLoadedPlugins() },
|
||||
type: 'call'
|
||||
},{
|
||||
name: "getLoadedPluginNames",
|
||||
visibility: "private",
|
||||
rpc: async () => { return this.getLoadedPluginNames() },
|
||||
@@ -87,12 +82,19 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
|
||||
visibility: "private",
|
||||
rpc: async(conf) => { return this.downloadPlugin(conf) },
|
||||
type: 'call'
|
||||
},{
|
||||
name: "getConfig",
|
||||
visibility: "private",
|
||||
rpc: async() => { return this.conf },
|
||||
type: 'call'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
async start(): Promise<void> {
|
||||
|
||||
await Promise.all(this.getInstalledPluginNames().map(name => {
|
||||
return this.loadPlugin(name)
|
||||
}));
|
||||
}
|
||||
|
||||
stop(): void {
|
||||
|
||||
Reference in New Issue
Block a user