blob: 8a94354801edd9a76037b24c631050e58fd8865e [file] [log] [blame]
/*---------------------------------------------------------
* Copyright 2022 The Go Authors. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------*/
import * as vscode from 'vscode';
import { GoExtensionContext } from '../context';
export { startLanguageServer } from './startLanguageServer';
type CommandCallback<T extends unknown[]> = (...args: T) => Promise<unknown> | unknown;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type CommandFactory<T extends unknown[] = any[]> = (
ctx: vscode.ExtensionContext,
goCtx: GoExtensionContext
) => CommandCallback<T>;