We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf4e49b commit 3534367Copy full SHA for 3534367
script/core/diagnostics/init.lua
@@ -65,7 +65,7 @@ local function getSeverity(uri, name)
65
local groupLevel = 999
66
for _, groupName in ipairs(groups) do
67
local gseverity = groupSeverity[groupName]
68
- if gseverity ~= 'Fallback' then
+ if gseverity and gseverity ~= 'Fallback' then
69
groupLevel = math.min(groupLevel, define.DiagnosticSeverity[gseverity])
70
end
71
@@ -94,7 +94,7 @@ local function getStatus(uri, name)
94
local groupLevel = 0
95
96
local gstatus = groupStatus[groupName]
97
- if gstatus ~= 'Fallback' then
+ if gstatus and gstatus ~= 'Fallback' then
98
groupLevel = math.max(groupLevel, define.DiagnosticFileStatus[gstatus])
99
100
0 commit comments