1 | import { ExecuteCommandParams, ServerCapabilities } from "../languageclient";
|
2 | import { LanguageClientConnection } from "../main";
|
3 | export declare type CommandCustomCallbackFunction = (command: ExecuteCommandParams) => Promise<any | void>;
|
4 | export default class CommandExecutionAdapter {
|
5 | private static commandsCustomCallbacks;
|
6 | static canAdapt(serverCapabilities: ServerCapabilities): boolean;
|
7 | static registerCustomCallbackForCommand(command: string, callback: CommandCustomCallbackFunction): void;
|
8 |
|
9 | static executeCommand(connection: LanguageClientConnection, command: string, commandArgs?: any[]): Promise<any | void>;
|
10 | private static createExecuteCommandParams;
|
11 | }
|