下面分别看下生成的四个文件 tsclient.go type Client interface { // See https://microsoft.github.io/language-server-protocol logTrace LogTrace(context.Context, *LogTraceParams) error // See https://microsoft.github.io/language-server-protocol progress Progress(context.Context, *ProgressParams) error // See https://microsoft.github.io/language-server-protocol RegisterCapability(context.Context, *RegistrationParams) error // See https://microsoft.github.io/language-server-protocol ApplyWorkspaceEditParams) (*ApplyWorkspaceEditResult, error) // See https://microsoft.github.io/language-server-protocol
的接口定义位于internal/protocol/tsserver.go type Server interface { // See https://microsoft.github.io/language-server-protocol progress Progress(context.Context, *ProgressParams) error // See https://microsoft.github.io/language-server-protocol setTrace SetTrace(context.Context, *SetTraceParams) error // See https://microsoft.github.io/language-server-protocol /lsp/3.17/specification#exit Exit(context.Context) error // See https://microsoft.github.io/language-server-protocol Resolve(context.Context, *InlayHint) (*InlayHint, error) // See https://microsoft.github.io/language-server-protocol
use {'neovim/nvim-lspconfig'} 我们可以去微软的官方网站查看各个语言的服务端信息 https://microsoft.github.io/language-server-protocol
关于 LSP 可以从这两篇文档中找到更加详细的介绍 LSP的官网: https://microsoft.github.io/language-server-protocol/ vscode中关于LSP插件的文档
v=lwhMThePdIo https://microsoft.github.io/language-server-protocol/ https://docs.microsoft.com/zh-cn/ visualstudio/extensibility/language-server-protocol?
Native UI http://microsoft.github.io/ace/docs/native-ui/ LSP Overview https://microsoft.github.io/language-server-protocol
Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang; sourcekit-lsp LSP(Language-Server-Protocol
www.rust-lang.org/ WebAssembly官方网站 https://webassembly.org/ Language Server Protocol规范 https://microsoft.github.io/language-server-protocol