diff --git a/Go-latest.vsix b/Go-latest.vsix index ba3f9bc59..0f4d55be8 100644 Binary files a/Go-latest.vsix and b/Go-latest.vsix differ diff --git a/package.json b/package.json index eb98ef710..d75564226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Go", - "version": "0.6.87-beta.1", + "version": "0.6.87", "publisher": "ms-vscode", "description": "Rich Go language support for Visual Studio Code", "author": { diff --git a/src/goPackages.ts b/src/goPackages.ts index d230325d9..6b84b79a0 100644 --- a/src/goPackages.ts +++ b/src/goPackages.ts @@ -22,6 +22,12 @@ let allPkgsCache: Map = new Map(); let pkgRootDirs = new Map(); function gopkgs(workDir?: string): Promise> { + const gopkgsBinPath = getBinPath('gopkgs'); + if (!path.isAbsolute(gopkgsBinPath)) { + promptForMissingTool('gopkgs'); + return Promise.resolve(new Map()); + } + let t0 = Date.now(); return new Promise>((resolve, reject) => { const args = ['-format', '{{.Name}};{{.ImportPath}}']; @@ -29,7 +35,7 @@ function gopkgs(workDir?: string): Promise> { args.push('-workDir', workDir); } - const cmd = cp.spawn(getBinPath('gopkgs'), args, { env: getToolsEnvVars() }); + const cmd = cp.spawn(gopkgsBinPath, args, { env: getToolsEnvVars() }); const chunks = []; const errchunks = []; let err: any;