https://github.com/Microsoft/vscode-go/wiki/Go-with-VS-Code-FAQ-and-Troubleshooting
Q: Auto-completions stopped working. What do I do?
- Run
gocode closein a terminal and try again. - If it still doesnt work, run
go get -u github.com/mdempsky/gocodeto update the tool. If you use thego.toolsGopathsetting, then set GOPATH to the value in that setting before runninggo getso that the tool is installed/updated in the right location - If it still doesnt work, run
gocode -s -debugin a terminal and try again. Results fromgocodewill show up in the terminal. If you see expected results in the terminal, but not in VS Code, log an issue in the vscode-go repo, else log an issue in the gocode repo.
沒想到有人對這個感興趣,那就翻譯下:
問題:自動補全功能停止工作。應該怎么做?
1. 在終端中運行 gocode close,然后再試試。
2. 如果仍然有問題,運行go get -u github.com/mdempsky/gocode ,更新下工具。
3. 如果還有問題,運行 gocode -s -debug,然后再試試。
希望有所幫助。
