Skip to main content

from_lsp_diagnostics

Function from_lsp_diagnostics 

Source
pub fn from_lsp_diagnostics(
    path: &str,
    items: &[Value],
) -> Vec<StructuredDiagnostic>
Expand description

Preserve LSP textDocument/publishDiagnostics items as structured diagnostics. items is the LSP diagnostics array; path the document they belong to.