Skip to main content

parse_lsp_server_log_name

Function parse_lsp_server_log_name 

Source
pub fn parse_lsp_server_log_name(name: &str) -> Option<InstanceKey>
Expand description

Recover the InstanceKey from a per-instance log buffer name. Returns None when name does not match the canonical *lsp:<server>:<workspace>* shape.

Rejects the trace variant — a name ending in :trace* parses via parse_lsp_trace_log_name instead, so the two flavours stay distinct at the type-of-buffer level.