diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 01:25:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 01:25:24 +0800 |
commit | 3252e1f4820bbbe6568c3be09fd6fa6dc436adde (patch) | |
tree | d738b45188f5e4562f3b5e0bd68f891d1ee7b851 /script-beta/core/completion.lua | |
parent | a1b4ef2fe432f5f52aa26c2687b068b012b163d3 (diff) | |
download | lua-language-server-3252e1f4820bbbe6568c3be09fd6fa6dc436adde.zip |
修正一些bug
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r-- | script-beta/core/completion.lua | 5 |
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 |