]> Sergey Matveev's repositories - vim-lsp.git/commit
Support optional diagnostic severity (#585)
authorAndrea Pappacoda <andrea@pappacoda.it>
Fri, 17 Jan 2025 16:15:59 +0000 (17:15 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2025 16:15:59 +0000 (08:15 -0800)
commit68a3696e1138f4906a2c863916115bc420396080
tree3e7efa1376ecde652ca3381b729c842abea6976c
parent144ce624fa0b2c231bc6cc2cbe6a8122dfde505d
Support optional diagnostic severity (#585)

The LSP specification defines the diagnostic severity as being optional,
defaulting to Error. Properly handle such cases.

This patch also complements commit
5b94bf7635de39979e81f9dace85b94d248a67e8, which fixed the issue but only
for when using the ALE integration. At the same time, it fixes it by
using severity Error as the default, rather than Information.
autoload/lsp/diag.vim