import { injectable } from 'inversify' ; import { commands , Disposable , TextEditor , TextEditorEdit } from 'vscode' ; import { ICommandManager } from './types/commandManager' ; @ injectable ( ) export class CommandManager implements ICommandManager { public registerCommand ( command , callback , thisArg ? ) { return commands . registerCommand ( command , callback , thisArg ) ; } public registerTextEditorCommand ( command , callback , thisArg ? ) { return commands . registerTextEditorCommand ( command , callback , thisArg ) ; } public executeCommand < T > ( command , ... rest ) { return commands . executeCommand < T > ( command , ... rest ) ; } public getCommands ( filterInternal ? ) { return commands . getCommands ( filterInternal ) ; } }