diff --git a/src/goInstallTools.ts b/src/goInstallTools.ts index dc980e53d..44bd2da0b 100644 --- a/src/goInstallTools.ts +++ b/src/goInstallTools.ts @@ -301,6 +301,8 @@ export function installTools(missing: string[]) { // Else use the Current Gopath let toolsGopath = getToolsGopath() || getCurrentGoPath(); if (toolsGopath) { + let paths = toolsGopath.split(path.delimiter); + toolsGopath = paths[0]; envForTools['GOPATH'] = toolsGopath; } else { vscode.window.showInformationMessage('Cannot install Go tools. Set either go.gopath or go.toolsGopath in settings.', 'Open User Settings', 'Open Workspace Settings').then(selected => {