Skip to content

Instantly share code, notes, and snippets.

@chris-skud
Created September 17, 2018 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-skud/692ba7cc0a4f0cdc36afe242ab3d0038 to your computer and use it in GitHub Desktop.
Save chris-skud/692ba7cc0a4f0cdc36afe242ab3d0038 to your computer and use it in GitHub Desktop.
fix vscode intellisense
Close all VS Code instances
Kill any running gocode process
Remove the gocode binary from your $GOPATH/bin and the corresponding code form $GOPATH/src/github.com/nsf/gocode or $GOPATH/src/github.com/mdempsky/gocode
If you added the go.toolsGopath setting, then use that instead of the $GOPATH above
Open VS Code, run Go: Install/Update Tools, select gocode to install it
Ensure that you haven't disabled the go.installDependenciesWhenBuilding setting
Ensure all dependencies are built by running Go: Build Current Package (It uses the go build -i so all dependencies will be built and installed)
Now try the completions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment