summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-26 15:02:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-26 16:20:01 +0800
commit1ed66a5e5ca3e26e82c64e9040784496a0396d3f (patch)
tree85f20897e852e5229d557969c9a7942292ea6914 /test/completion
parent910f81f8e11232da868ccf2822aba5c6b0deadc2 (diff)
downloadlua-language-server-1ed66a5e5ca3e26e82c64e9040784496a0396d3f.zip
update test
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 051c288c..58885149 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -83,9 +83,11 @@ function TEST(script)
assert(result ~= nil)
result.enableCommon = nil
for _, item in ipairs(result) do
- local r = core.resolve(item.id)
- for k, v in pairs(r or {}) do
- item[k] = v
+ if item.id then
+ local r = core.resolve(item.id)
+ for k, v in pairs(r or {}) do
+ item[k] = v
+ end
end
for k in pairs(item) do
if not Cared[k] then