From fe1ee3883acdfa6a8966723dc0328c8ef33d8311 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Mon, 6 Jul 2020 16:07:00 +0800 Subject: [PATCH] fix: spring tab complate error Signed-off-by: MiaoWoo --- packages/spring/src/command.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/spring/src/command.ts b/packages/spring/src/command.ts index 6e0834be..c565faf7 100644 --- a/packages/spring/src/command.ts +++ b/packages/spring/src/command.ts @@ -7,10 +7,8 @@ import { CommandMap } from './internal/command' @provideSingleton(command.Command) export class SpringCommand extends command.Command { - @inject(plugin.PluginInstance) - private pluginInstance: any @inject(CommandMap) - private commandMap: CommandMap = new CommandMap() + private commandMap: CommandMap protected create(plugin: any, command: string) { return this.commandMap.register(plugin, command) @@ -22,6 +20,6 @@ export class SpringCommand extends command.Command { command.setExecutor(super.setExecutor(plugin, command, executor)) } protected onTabComplete(plugin: any, command: any, tabCompleter: Function) { - command.setTabCompleter(super.setExecutor(plugin, command, tabCompleter)) + command.setTabCompleter(super.setTabCompleter(plugin, command, tabCompleter)) } }