Skip to main content

Module protocol

Module protocol 

Source

Structs§

InitializeRequest
Initialize request to set up LSP for a workspace
LspErrorResponse
LSP error response
LspNotification
LSP notification from client to server
ProtocolError
Protocol-level error (not LSP error)

Enums§

DaemonRequest
Messages sent from an LspClient to the LspDaemon.
DaemonResponse
Top-level daemon response

Constants§

LSP_REQUEST_TIMED_OUT
Error code for a request that exceeded the daemon’s per-request timeout. The daemon kills and replaces the language server when this fires.
LSP_TRANSPORT_CLOSED
Error code for a request that failed because the language server process exited or its transport shut down before responding.
MAX_MESSAGE_SIZE
Maximum message size (16 MB)

Functions§

extract_document_uri
Extract the document URI from an LSP request’s params by method name.