diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-26 15:02:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-26 16:20:01 +0800 |
commit | 1ed66a5e5ca3e26e82c64e9040784496a0396d3f (patch) | |
tree | 85f20897e852e5229d557969c9a7942292ea6914 /test/crossfile | |
parent | 910f81f8e11232da868ccf2822aba5c6b0deadc2 (diff) | |
download | lua-language-server-1ed66a5e5ca3e26e82c64e9040784496a0396d3f.zip |
update test
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/completion.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index 455f0600..172f9d6f 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -108,9 +108,11 @@ function TEST(data) result.enableCommon = nil removeMetas(result) 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 |