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

Commit

Permalink
Workaround for electron issue where badly spawned process error out #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Aug 14, 2018
1 parent 268720d commit a36203f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file modified Go-latest.vsix
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Go",
"version": "0.6.86",
"version": "0.6.87-beta.1",
"publisher": "ms-vscode",
"description": "Rich Go language support for Visual Studio Code",
"author": {
Expand Down
4 changes: 4 additions & 0 deletions src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
private runGoCode(document: vscode.TextDocument, filename: string, inputText: string, offset: number, inString: boolean, position: vscode.Position, lineText: string, currentWord: string, includeUnimportedPkgs: boolean, config: vscode.WorkspaceConfiguration): Thenable<vscode.CompletionItem[]> {
return new Promise<vscode.CompletionItem[]>((resolve, reject) => {
let gocode = getBinPath('gocode');
if (!path.isAbsolute(gocode)) {
promptForMissingTool(gocode);
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
Expand Down

0 comments on commit a36203f

Please sign in to comment.