Skip to content

Commit

Permalink
fix: default severity in CLI with partial 'diagnostics.severity' config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlau10 committed Jun 26, 2024
1 parent ffee37b commit a329e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/cli/check_worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ xpcall(lclient.start, errorhandler, lclient, function (client)

local disables = util.arrayToHash(config.get(rootUri, 'Lua.diagnostics.disable'))
for name, serverity in pairs(define.DiagnosticDefaultSeverity) do
serverity = config.get(rootUri, 'Lua.diagnostics.severity')[name] or 'Warning'
serverity = config.get(rootUri, 'Lua.diagnostics.severity')[name] or serverity
if serverity:sub(-1) == '!' then
serverity = serverity:sub(1, -2)
end
Expand Down

0 comments on commit a329e7e

Please sign in to comment.