You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-lsp/src
Michael Davis 449d1dfdfb
prevent panic when receiving malformed LSP PublishDiagnostic (#2160)
Instead of panicing we can discard the malformed diagnostic. This
`.parse()` fails commonly when a non-conformant language server gives
a diagnostic with a location that breaks the spec:

    { "character": 0, "line": -1 }

can currently be returned by ElixirLS and the python LS. Other
messages in this block are discarded but this one feels special enough
to log.
2 years ago
..
client.rs Send active diagnostics to LSP when requesting code actions. (#2005) 2 years ago
lib.rs prevent panic when receiving malformed LSP PublishDiagnostic (#2160) 2 years ago
transport.rs lsp: This doesn't need to be a mutable reference 3 years ago