Skip to main content

LSP_MAX_MESSAGE_BYTES

Constant LSP_MAX_MESSAGE_BYTES 

Source
pub const LSP_MAX_MESSAGE_BYTES: usize = _; // 16_777_216usize
Expand description

Hardening cap (same rationale as crate::mcp::MCP_MAX_RESPONSE_BYTES): the largest single Content-Length-framed message this client will buffer before treating the server as hostile/broken and erroring out — bounds how much memory a misbehaving configured language server can force this process to allocate for one message.