Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go vscode 自动补全 #9

Open
patricksuo opened this issue Jul 30, 2019 · 2 comments
Open

go vscode 自动补全 #9

patricksuo opened this issue Jul 30, 2019 · 2 comments

Comments

@patricksuo
Copy link
Owner

gopls + vscode 已经能提供很好的 go 开发环境了:
https://github.com/golang/go/wiki/gopls
https://github.com/Microsoft/vscode-go/wiki/Go-modules-support-in-Visual-Studio-Code

目前有个问题是: 对多个 module 的仓库不友好:
golang/go#32394

可以通过添加多个 directory 到 workspace 解决:
https://code.visualstudio.com/docs/editor/multi-root-workspaces

@Aroaming
Copy link

Aroaming commented Sep 4, 2019

vscode 同一个package下的函数 跳转时候undeclared name
每个文件夹都需要添加到workspace解决吗?

@patricksuo
Copy link
Owner Author

我这里说的是单一仓库内有好几个 module 的时候,需要把各个 module 添加到 workspace。

同一个package下的函数 跳转时候undeclared name

如果是同 package 应该不会吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants