Language Server Protocol

今天在尝试装vscode tools for Go开发的时候,看到的LSP,感觉很不错,记录一下。

The Language Server Protocol (LSP) defines the protocol used between an editor or IDE and a language server that provides language features like auto complete, go to definition, find all references etc.

What & Why 详细参考:https://langserver.org/

GO语言的官方LSP是gopls (pronounced: “go please”) ,目前还是alpha版本,详细参考: https://github.com/golang/tools/blob/master/gopls/README.md

GO – VSCode配置

vscode的go extension装上了,但是gopls一直装不上,尝试了goproxy设置还是不可以。花了两个小时,尝试了好几个方案,还是不可以,过两天再看,先学习。

https://github.com/goproxy/goproxy.cn

发表评论

电子邮件地址不会被公开。 必填项已用*标注