summaryrefslogtreecommitdiff
path: root/script-beta/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-28 01:49:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-28 01:49:59 +0800
commit24a8b40a37b8a80355b3d29c2e04c91c14d4c71b (patch)
treecc4a840771707467de9f45738e0055aef70adb30 /script-beta/parser/guide.lua
parent0617cddc170ddb0070591a74f55a1eb8cea4b961 (diff)
downloadlua-language-server-24a8b40a37b8a80355b3d29c2e04c91c14d4c71b.zip
修正自动完成时无法预览标准库表结构的问题
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r--script-beta/parser/guide.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 9ede7e0a..0a579a69 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -1129,6 +1129,12 @@ function m.searchFields(status, obj, key, interface)
end
end
return results
+ elseif obj.type == 'library' then
+ local results = {}
+ for i = 1, #obj.fields do
+ results[i] = obj.fields[i]
+ end
+ return results
else
local newStatus = m.status(status, interface)
local simple = m.getSimple(obj)