pub fn run_lsp_server(
timeout_secs: u64,
max_memory_mb: u64,
) -> Result<(), Box<dyn Error>>Expand description
Run the server. timeout_secs is the per-conversion wall-clock budget
(--timeout; 0 disables) and max_memory_mb the resident-memory ceiling
(--max-memory; 0 disables). Both are applied fresh per conversion by
the forked body child’s shared latexml_core::watchdog::Watchdog — so a
child never runs against the parent’s stale warm-up deadline, and is reaped
if it exceeds the RAM ceiling. The extension surfaces both as VSCode
settings and passes them on the spawn.