]> Sergey Matveev's repositories - vim-lsp.git/commit
Do not require diagnostic severity for ale (#534)
authorMagnus Groß <21310755+vimpostor@users.noreply.github.com>
Tue, 10 Sep 2024 15:04:25 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2024 15:04:25 +0000 (08:04 -0700)
commit5b94bf7635de39979e81f9dace85b94d248a67e8
tree234b5877808a138f897a4fca84b0115289c0201c
parent89d5350d756a9bd19bfc3ac0e30c53228e0b28d6
Do not require diagnostic severity for ale (#534)

Some LSPs like for example neocmakelsp [0] do not mark the diagnostics
with a severity, which would throw an error:

```
Error detected while processing function <SNR>66_Output_cb[5]..lsp#handlers#ProcessMess
ages[32]..lsp#handlers#ProcessNotif[52]..<SNR>67_ProcessDiagNotif[2]..lsp#diag#DiagNoti
fication[72]..lsp#diag#ProcessNewDiags[5]..<SNR>69_SendAleDiags[14]..<lambda>46:
line    6:
E716: Key not present in Dictionary: "severity"
```

To fix this, default to "INFO" severity level.

[0] https://github.com/Decodetalkers/neocmakelsp
autoload/lsp/diag.vim