Skip to main content

lsp_content

Function lsp_content 

Source
pub fn lsp_content(
    progress: &HashMap<(Arc<str>, String), LspProgressUpdate>,
    server_status: &HashMap<Arc<str>, LspServerStatusChanged>,
) -> ElementContent
Expand description

Build the lsp element content from progress + server-status maps. Always non-empty (the badge always shows on an attached buffer): lsp ✗ on any health error, lsp ⟳ while any server is busy / a $/progress token is in flight, else lsp ✓, with the highest-percentage in-flight token’s <title> NN% appended. Glyphs are BMP-safe (lsp-architecture.md §14). Pure — unit-tested.