From 950ce69b834fd8437de2fa87ce03df448c98e457 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 4 Mar 2020 02:11:55 +0800 Subject: [PATCH] feat: modify stage order Signed-off-by: MiaoWoo --- packages/plugin/src/manager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugin/src/manager.ts b/packages/plugin/src/manager.ts index 78089d7f..c433a7a1 100644 --- a/packages/plugin/src/manager.ts +++ b/packages/plugin/src/manager.ts @@ -64,20 +64,20 @@ export class PluginManagerImpl implements plugin.PluginManager { enable(...args: any[]): void { this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => { this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.enable")) - this.runCatch(plugin, 'enable') - this.runCatch(plugin, `${this.serverType}enable`) this.registryCommand(plugin) this.registryListener(plugin) + this.runCatch(plugin, 'enable') + this.runCatch(plugin, `${this.serverType}enable`) }) } disable(...args: any[]): void { this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => { this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.disable")) - this.runCatch(plugin, 'disable') - this.runCatch(plugin, `${this.serverType}disable`) this.unregistryCommand(plugin) this.unregistryListener(plugin) + this.runCatch(plugin, 'disable') + this.runCatch(plugin, `${this.serverType}disable`) }) }