blob: f03b609f95a87136c58cada7838925a792b4c2f6 [file] [log] [blame]
/*---------------------------------------------------------
* Copyright 2021 The Go Authors. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------*/
import { Uri } from 'vscode';
export { ToolAtVersion } from './goTools';
export interface CommandInvocation {
binPath: string;
args?: string[] | string;
env?: Object;
cwd?: string;
}
export interface ExtensionAPI {
settings: {
/**
* Returns the execution command corresponding to the specified resource, taking into account
* any workspace-specific settings for the workspace to which this resource belongs.
*/
getExecutionCommand(toolName: string, resource?: Uri): CommandInvocation | undefined;
};
}