diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-30 15:32:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-30 15:32:11 +0800 |
commit | aca5d65499c3af0fe0d73cd7ce69e7de2248b1e8 (patch) | |
tree | 19c2e6d7cb9e699aaa3e1438c4e12c44d430dbe3 /script-beta/vm/getClass.lua | |
parent | 705e882703b837e44b1c6689d1fd90c7778f2c0f (diff) | |
download | lua-language-server-aca5d65499c3af0fe0d73cd7ce69e7de2248b1e8.zip |
优化 table 的hover性能
Diffstat (limited to 'script-beta/vm/getClass.lua')
-rw-r--r-- | script-beta/vm/getClass.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/getClass.lua b/script-beta/vm/getClass.lua index 1948922d..bd7f6f7c 100644 --- a/script-beta/vm/getClass.lua +++ b/script-beta/vm/getClass.lua @@ -30,7 +30,7 @@ local function getClass(source, classes, depth, deep) return end local value = guide.getObjectValue(source) or source - if deep and value == source then + if not deep then if value and value.type == 'string' then classes[#classes+1] = value[1] end |