From 718271fb2fa526bc526159ed04e3118704e5a39c Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 16 Oct 2018 17:49:06 +0800 Subject: [PATCH] Remove env mask on GOOS and GOARCH Removed to allow syggestions on platform-specific syscall Revert "Ensure environment variables for gocode process are not configured for cross compilation" This reverts commit f73f41df14cf0bb9658e7bd87463a81bdef84a50. --- src/goSuggest.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/goSuggest.ts b/src/goSuggest.ts index a5d9e664e..f421d5628 100644 --- a/src/goSuggest.ts +++ b/src/goSuggest.ts @@ -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 = '';