Expand description
LSP 协议实现
实现 LSP JSON-RPC 协议的消息编码和解码。
Structs§
- Code
Action Params - 代码动作请求参数
- Completion
Params - 完成请求参数
- Definition
Params - 定义请求参数
- DidChange
Text Document Params - didChange 参数
- DidClose
Text Document Params - didClose 参数
- DidOpen
Text Document Params - didOpen 参数
- Document
Formatting Params - 格式化请求参数
- Document
Highlight Params - 文档高亮请求参数
- Document
Range Formatting Params - 范围格式化请求参数
- Document
Symbol Params - 文档符号请求参数
- Hover
Params - Hover 请求参数
- Implementation
Params - 实现请求参数
- LspNotification
- JSON-RPC 通知消息
- LspRequest
- JSON-RPC 请求消息
- LspResponse
- JSON-RPC 响应消息
- Reference
Params - 引用请求参数
- Rename
Params - 重命名请求参数
- RpcError
- JSON-RPC 错误
- Signature
Help Params - 签名帮助请求参数
- Type
Definition Params - 类型定义请求参数
- Workspace
Symbol Params - 工作区符号请求参数
Enums§
- LspMessage
- LSP 消息类型
- Request
Id - JSON-RPC 请求 ID
Traits§
- Message
Content - 消息内容类型(用于 Content-Length 头)
Functions§
- create_
code_ action_ request - 创建代码动作请求
- create_
completion_ request - 创建完成请求
- create_
definition_ request - 创建定义请求
- create_
did_ change_ notification - 创建 didChange 通知
- create_
did_ close_ notification - 创建 didClose 通知
- create_
did_ open_ notification - 创建 didOpen 通知
- create_
document_ highlight_ request - 创建文档高亮请求
- create_
document_ symbol_ request - 创建文档符号请求
- create_
formatting_ request - 创建格式化请求
- create_
hover_ request - 创建 Hover 请求
- create_
implementation_ request - 创建实现请求
- create_
initialize_ request - 创建初始化请求
- create_
references_ request - 创建引用请求
- create_
rename_ request - 创建重命名请求
- create_
signature_ help_ request - 创建签名帮助请求
- create_
type_ definition_ request - 创建类型定义请求
- create_
workspace_ symbol_ request - 创建工作区符号请求
- read_
message - 从输入流读取消息
- write_
message - 写消息到输出流