LSP与gopls

LSP是微软牵头搞得一套协议,用于各种语言和IDE之间的提示,补全之类的;

gopls是Go的实现,由Go Team维护 (还有一个是Sourcegraph维护的,现在不更新了)

Implementations-Language Servers



VSCode 建议你启用 gopls,它到底是个什么东东?

VS Code Go 语言扩展将默认启用 gopls

Go Blog-Gopls on by default in the VS Code Go extension




20250526

可以为其做贡献~

https://github.com/golang/tools/tree/master/gopls

https://github.com/golang/tools/blob/master/gopls/doc/advanced.md#installing-unreleased-versions

https://github.com/golang/go/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Agopls+label%3A%22help+wanted%22

https://github.com/golang/tools/blob/master/gopls/doc/design/implementation.md

https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#troubleshooting

https://github.com/golang/go/issues?q=is%3Aissue+is%3Aopen+label%3Agopls

文章目录