summaryrefslogtreecommitdiff
path: root/script/cli
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-07 21:27:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-07 21:27:45 +0800
commit680e6c9848a6e5f43ccce11561ec98839822bdea (patch)
tree829e587428002e9fdd3f82364c39490d2c3f0c24 /script/cli
parent5762f1bdc412a128489f0ad27124193fedfb13e9 (diff)
downloadlua-language-server-680e6c9848a6e5f43ccce11561ec98839822bdea.zip
cleanup
Diffstat (limited to 'script/cli')
-rw-r--r--script/cli/check.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/cli/check.lua b/script/cli/check.lua
index dd2e7737..4df94c59 100644
--- a/script/cli/check.lua
+++ b/script/cli/check.lua
@@ -50,14 +50,14 @@ lclient():start(function (client)
ws.awaitReady(rootUri)
- local disables = config.get(rootUri, 'Lua.diagnostics.disable')
+ 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'
if define.DiagnosticSeverity[serverity] > checkLevel then
disables[name] = true
end
end
- config.set(nil, 'Lua.diagnostics.disable', disables)
+ config.set(nil, 'Lua.diagnostics.disable', util.getTableKeys(disables, true))
local uris = files.getAllUris(rootUri)
local max = #uris