handle legacy plugins in plugin loader

This commit is contained in:
Eugene Pankov
2021-07-02 00:09:32 +02:00
parent 4569126322
commit cb06a8e493
3 changed files with 14 additions and 5 deletions

View File

@@ -22,7 +22,8 @@ export class PluginManagerService {
@Inject(BOOTSTRAP_DATA) bootstrapData: BootstrapData,
) {
this.logger = log.create('pluginManager')
this.installedPlugins = bootstrapData.installedPlugins
this.installedPlugins = [...bootstrapData.installedPlugins]
this.installedPlugins.sort((a, b) => a.name.localeCompare(b.name))
this.userPluginsPath = bootstrapData.userPluginsPath
}