Expand description
A synchronous language server implementation.
Modules§
- dap
- A synchronous debug adaptor server implementation.
- lsp
- A synchronous LSP server implementation.
- req_
queue - The request-response queue for the LSP server.
- transport
- Transport layer for LSP messages.
Structs§
- Connection
- Connection is just a pair of channels of LSP messages.
- LsBuilder
- The builder pattern for the language server.
- LsDriver
- The language server driver.
- LspClient
- The host for the language server, or known as the LSP client.
- LspClient
Root - The root of the language server host. Will close connection when dropped.
- Protocol
Error - A protocol error happened during communication through LSP or DAP.
- Request
Id - A request ID in the Language Server Protocol.
- Response
Error - The common error type for language servers. A response from the server.
- TConnection
Rx - The sender of the language server.
- TConnection
Tx - The sender of the language server.
- Typed
LspClient - A Lsp client with typed service
S
.
Enums§
- Error
Code - The error codes defined by the JSON RPC.
- Event
OrMessage - This is a helper enum to handle both events and messages.
- Extract
Error - Failure of decoding happened during communication through LSP or DAP.
- Message
- The common message type for the language server.
- Message
Kind - The kind of the message.
- Service
State - An enum to represent the state of the language server.
Traits§
- GetMessage
Kind - Gets the kind of the message.
- Initializer
- A trait that initializes the language server.
- LsHook
- A trait that defines the hook for the language server.
Functions§
- erased_
response - Erases the response type to a generic
JsonValue
. - internal_
error - Creates an internal error.
- invalid_
params - Creates an invalid params error.
- invalid_
request - Creates an invalid request error.
- just_
future - A helper function to create a
LspResponseFuture
- just_ok
- A helper function to create a
LspResponseFuture
- just_
result - A helper function to create a
LspResponseFuture
- method_
not_ found - Creates a method not found error.
- not_
initialized - Creates a not initialized error.
Type Aliases§
- AnySchedulable
Response - The common response future type for language servers.
- Connection
Rx - The untyped connect rx for language servers.
- Connection
Tx - The untyped connect tx for language servers.
- DapBuilder
- The language server builder serving DAP.
- DapMessage
- The common message type for the DAP protocol.
- Event
- The common event type for language servers.
- LspBuilder
- The language server builder serving LSP.
- LspMessage
- The common message type for the LSP protocol.
- LspResponse
Future - A future that may be rejected before actual started.
- LspResult
- The common result type for language servers.
- Response
Future - A future that may be done in place or not.
- Schedulable
Response - A future that could be rejected by common error in
LspResponseFuture
. - Schedule
Result - The result of a scheduling response
- Scheduled
Result - The result of a scheduled response which could be finally caught by
schedule_tail
.