fix: spring tab complate error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
646176b43c
commit
4138cf9448
@ -7,10 +7,8 @@ import { CommandMap } from './internal/command'
|
|||||||
|
|
||||||
@provideSingleton(command.Command)
|
@provideSingleton(command.Command)
|
||||||
export class SpringCommand extends command.Command {
|
export class SpringCommand extends command.Command {
|
||||||
@inject(plugin.PluginInstance)
|
|
||||||
private pluginInstance: any
|
|
||||||
@inject(CommandMap)
|
@inject(CommandMap)
|
||||||
private commandMap: CommandMap = new CommandMap()
|
private commandMap: CommandMap
|
||||||
|
|
||||||
protected create(plugin: any, command: string) {
|
protected create(plugin: any, command: string) {
|
||||||
return this.commandMap.register(plugin, command)
|
return this.commandMap.register(plugin, command)
|
||||||
@ -22,6 +20,6 @@ export class SpringCommand extends command.Command {
|
|||||||
command.setExecutor(super.setExecutor(plugin, command, executor))
|
command.setExecutor(super.setExecutor(plugin, command, executor))
|
||||||
}
|
}
|
||||||
protected onTabComplete(plugin: any, command: any, tabCompleter: Function) {
|
protected onTabComplete(plugin: any, command: any, tabCompleter: Function) {
|
||||||
command.setTabCompleter(super.setExecutor(plugin, command, tabCompleter))
|
command.setTabCompleter(super.setTabCompleter(plugin, command, tabCompleter))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user