volar and diangnostic severity level check

mine
ray-x 2 years ago
parent 9afcd37854
commit 8d00282020

@ -226,14 +226,16 @@ local diag_hdlr = function(err, result, ctx, config)
item.uri = uri item.uri = uri
-- trace(item) -- trace(item)
local head = _NgConfigValues.icons.diagnostic_head local head = _NgConfigValues.icons.diagnostic_head
if v.severity == 1 then if v.severity then
head = _NgConfigValues.icons.diagnostic_head_severity_1 if v.severity == 1 then
end head = _NgConfigValues.icons.diagnostic_head_severity_1
if v.severity == 2 then end
head = _NgConfigValues.icons.diagnostic_head_severity_2 if v.severity == 2 then
end head = _NgConfigValues.icons.diagnostic_head_severity_2
if v.severity > 2 then end
head = _NgConfigValues.icons.diagnostic_head_severity_3 if v.severity > 2 then
head = _NgConfigValues.icons.diagnostic_head_severity_3
end
end end
if v.relatedInformation and v.relatedInformation[1] then if v.relatedInformation and v.relatedInformation[1] then
local info = v.relatedInformation[1] local info = v.relatedInformation[1]

@ -28,6 +28,7 @@ return {
'nimls', 'nimls',
'intelephense', 'intelephense',
'vuels', 'vuels',
'volar',
'phpactor', 'phpactor',
'omnisharp', 'omnisharp',
'r_language_server', 'r_language_server',

Loading…
Cancel
Save