summaryrefslogtreecommitdiff
path: root/script/provider/diagnostic.lua
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/provider/diagnostic.lua
parent5762f1bdc412a128489f0ad27124193fedfb13e9 (diff)
downloadlua-language-server-680e6c9848a6e5f43ccce11561ec98839822bdea.zip
cleanup
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r--script/provider/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 076a613e..d6d6c4a3 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -183,7 +183,7 @@ function m.syntaxErrors(uri, ast)
local results = {}
pcall(function ()
- local disables = config.get(uri, 'Lua.diagnostics.disable')
+ local disables = util.arrayToHash(config.get(uri, 'Lua.diagnostics.disable'))
for _, err in ipairs(ast.errs) do
if not disables[err.type:lower():gsub('_', '-')] then
results[#results+1] = buildSyntaxError(uri, err)