Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fix windows path when fetching pkgs #1147
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 5, 2017
1 parent 406d226 commit 1e5ca5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified Go-latest.vsix
Binary file not shown.
5 changes: 5 additions & 0 deletions src/goPackages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ export function getAllPackages(): Promise<Map<string, string>> {
*/
export function getImportablePackages(filePath: string): Promise<Map<string, string>> {

// Workaround for issue in https://github.com/Microsoft/vscode/issues/9448#issuecomment-244804026
if (process.platform === 'win32' && filePath) {
filePath = filePath.substr(0, 1).toUpperCase() + filePath.substr(1);
}

return Promise.all([isVendorSupported(), getAllPackages()]).then(values => {
let isVendorSupported = values[0];
let pkgs = values[1];
Expand Down

0 comments on commit 1e5ca5e

Please sign in to comment.