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

Commit

Permalink
Remove env mask on GOOS and GOARCH
Browse files Browse the repository at this point in the history
Removed to allow syggestions on platform-specific syscall

Revert "Ensure environment variables for gocode process are not configured for cross compilation"

This reverts commit f73f41d.
  • Loading branch information
eternal-flame-AD authored and eternal-flame-AD committed Oct 16, 2018
1 parent d789de0 commit 718271f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
return reject();
}

// Unset GOOS and GOARCH for the `gocode` process to ensure that GOHOSTOS and GOHOSTARCH
// are used as the target operating system and architecture. `gocode` is unable to provide
// autocompletion when the Go environment is configured for cross compilation.
let env = Object.assign({}, getToolsEnvVars(), { GOOS: '', GOARCH: '' });
let env = Object.assign({}, getToolsEnvVars());
let stdout = '';
let stderr = '';

Expand Down

0 comments on commit 718271f

Please sign in to comment.