import { ExecuteCommandParams , Connection } from 'vscode-languageserver' ; import { CommandExecutor } from '../commandExecutor' ; export class WorkspaceHandlers { constructor ( private readonly connection , private readonly commandExecutor ) { } registerHandlers ( ) { this . connection . onExecuteCommand ( ( params ) => this . executeCommand ( params ) ) ; } private executeCommand ( params ) { return this . commandExecutor . executeCommand ( params ) ; } }