helix-mirror/helix-lsp
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.
2022-04-18 23:11:28 +08:00
..
src prevent panic when receiving malformed LSP PublishDiagnostic (#2160) 2022-04-18 23:11:28 +08:00
Cargo.toml build(deps): bump lsp-types from 0.92.1 to 0.93.0 (#2084) 2022-04-12 12:12:30 +09:00