summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-05 21:03:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-05 21:03:32 +0800
commitc2eaa0fa6d31208941d61fac9d93940e08d7a1d3 (patch)
tree9265e3749c5dfabd08981baff50a22f67fd3663c /script/core/diagnostics/init.lua
parent36a0e0f40dafdab77dd3df2ead8bceb92e3ae193 (diff)
downloadlua-language-server-c2eaa0fa6d31208941d61fac9d93940e08d7a1d3.zip
fix test
Diffstat (limited to 'script/core/diagnostics/init.lua')
-rw-r--r--script/core/diagnostics/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 9114371f..32375a3a 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -116,6 +116,8 @@ return function (uri, isScopeDiag, response, checked)
for _, name in ipairs(diagList) do
await.delay()
check(uri, name, isScopeDiag, response)
- checked(name)
+ if checked then
+ checked(name)
+ end
end
end