summaryrefslogtreecommitdiff
path: root/script-beta/vm/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-13 11:18:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-13 11:18:45 +0800
commit95da0c25dedd847582222edd34d8c00631ae03bb (patch)
tree580b2858750da3786b349df24bdaf75843da6e73 /script-beta/vm/getGlobals.lua
parentc27a44e9e77911efe5646715c2b3e42bb8409826 (diff)
downloadlua-language-server-95da0c25dedd847582222edd34d8c00631ae03bb.zip
把名字改成一致的
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r--script-beta/vm/getGlobals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua
index 32617eb1..661037be 100644
--- a/script-beta/vm/getGlobals.lua
+++ b/script-beta/vm/getGlobals.lua
@@ -116,7 +116,7 @@ function vm.getGlobals(name)
end
function vm.getGlobalSets(name)
- local cache = vm.getCache('getGlobalDefs')[name]
+ local cache = vm.getCache('getGlobalSets')[name]
if cache ~= nil then
return cache
end
@@ -127,6 +127,6 @@ function vm.getGlobalSets(name)
cache[#cache+1] = source
end
end
- vm.getCache('getGlobalDefs')[name] = cache
+ vm.getCache('getGlobalSets')[name] = cache
return cache
end