blob: accc455dd015a965d71202d80e2d9fe3f2c9167d [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';
import { CommandInvocation, ExtensionAPI } from './export';
import { getBinPathWithExplanation } from './util';
const api: ExtensionAPI = {
settings: {
getExecutionCommand(toolName: string, resource?: Uri): CommandInvocation | undefined {
const { binPath } = getBinPathWithExplanation(toolName, true, resource);
return { binPath };
}
}
};
export default api;