This document describes the Emacs API functions exposed by the LSPCE Rust module.
Changes the maximum number of diagnostics to cache. Returns a success message.
Returns the current maximum number of diagnostics being cached.
Disables logging to /tmp/lspce.log. Returns a success message.
Enables logging to /tmp/lspce.log. Returns a success message.
Sets the logging level. Returns a success message.
Returns the current logging level.
Sets the logging file path. Returns a success message.
connect(root_uri: String, lsp_type: String, cmd: String, cmd_args: String, initialize_req: String, timeout: i32, emacs_envs: String) -> Option<String>
Connects to an LSP server or creates a new server process. Returns server info as JSON string if successful.
Shuts down an LSP server. Returns None.
Returns server info as JSON string if server exists.
Sends an async request to the LSP server. Returns true if successful.
Sends a notification to the LSP server. Returns true if successful.
read_response_exact(root_uri: String, file_type: String, id: String, method: String) -> Option<String>
Reads a specific response by request ID. Returns response content as JSON string.
Reads the next notification from the server. Returns notification content as JSON string.
Reads diagnostics for a specific file URI. Returns diagnostics as JSON string.
Returns the ID of the latest response received.
Returns the tick value of the latest response received.