diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-28 16:59:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-28 16:59:58 +0800 |
commit | 697aa9822b989d670c38bab8b4a0c25352a1b316 (patch) | |
tree | 26ee36e3575a4bd4eaf84e4a17fe8d4cdfd8f3b0 /script-beta/vm/getClass.lua | |
parent | eec3341dcba8b4076a038827aad3869a1439058b (diff) | |
download | lua-language-server-697aa9822b989d670c38bab8b4a0c25352a1b316.zip |
允许在索引过程中访问库
Diffstat (limited to 'script-beta/vm/getClass.lua')
-rw-r--r-- | script-beta/vm/getClass.lua | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/script-beta/vm/getClass.lua b/script-beta/vm/getClass.lua index a3394e41..b573c6be 100644 --- a/script-beta/vm/getClass.lua +++ b/script-beta/vm/getClass.lua @@ -5,11 +5,6 @@ local function getClass(source, classes, deep) if deep > 3 then return end - local lib = vm.getLibrary(source) - if lib and lib.type == 'table' then - classes[#classes+1] = lib.name - return - end local value = guide.getObjectValue(source) or source vm.eachField(value, function (src) local key = vm.getKeyName(src) |