Skip to main content

to_lsp

Function to_lsp 

Source
fn to_lsp(pd: &PositionalDiagnostic, rope: &Rope) -> Diagnostic
Expand description

Convert a PositionalDiagnostic to an LSP Diagnostic.

Used by the per-keystroke parse path which builds PositionalDiagnostics with both error and warning severity. The validation / typecheck flows build Diagnostics directly via build_error_diagnostic.