summaryrefslogtreecommitdiff
path: root/script-beta/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-28 01:25:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-28 01:25:24 +0800
commit3252e1f4820bbbe6568c3be09fd6fa6dc436adde (patch)
treed738b45188f5e4562f3b5e0bd68f891d1ee7b851 /script-beta/core/completion.lua
parenta1b4ef2fe432f5f52aa26c2687b068b012b163d3 (diff)
downloadlua-language-server-3252e1f4820bbbe6568c3be09fd6fa6dc436adde.zip
修正一些bug
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r--script-beta/core/completion.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index 2837eb68..c46e49e1 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -373,6 +373,11 @@ end
local function checkField(ast, word, start, offset, parent, oop, results)
local fields = {}
vm.eachField(parent, function (src)
+ if src.type == 'library' then
+ if src.name:sub(1, 1) == '@' then
+ return
+ end
+ end
local key = vm.getKeyName(src)
if not key or key:sub(1, 1) ~= 's' then
return