atom-languageclient
Version:
Integrate Language Servers with Atom
12 lines (11 loc) • 712 B
TypeScript
import { ExecuteCommandParams, ServerCapabilities } from "../languageclient";
import { LanguageClientConnection } from "../main";
export declare type CommandCustomCallbackFunction = (command: ExecuteCommandParams) => Promise<any | void>;
export default class CommandExecutionAdapter {
private static commandsCustomCallbacks;
static canAdapt(serverCapabilities: ServerCapabilities): boolean;
static registerCustomCallbackForCommand(command: string, callback: CommandCustomCallbackFunction): void;
/** Returns a {Promise} */
static executeCommand(connection: LanguageClientConnection, command: string, commandArgs?: any[]): Promise<any | void>;
private static createExecuteCommandParams;
}