diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 14:35:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-19 14:35:55 +0800 |
commit | ca1d649bab3431377684233724a66295aedf983b (patch) | |
tree | 7307e0eef68b4431ae1618aa301e63ed48fd33ad /script-beta/vm/getGlobals.lua | |
parent | 7ca5c199bb4689528107e4f71382bc8baf71cba7 (diff) | |
download | lua-language-server-ca1d649bab3431377684233724a66295aedf983b.zip |
修正一个bug
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r-- | script-beta/vm/getGlobals.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua index 4c0abe3d..9d51ec31 100644 --- a/script-beta/vm/getGlobals.lua +++ b/script-beta/vm/getGlobals.lua @@ -83,16 +83,16 @@ local function getAnyGlobalsFast() return results end -function vm.getGlobals(name) - if name == '*' and config.config.intelliSense.fastGlobal then +function vm.getGlobals(key) + if key == '*' and config.config.intelliSense.fastGlobal then return getAnyGlobalsFast() end - local cache = vm.getCache('getGlobals')[name] + local cache = vm.getCache('getGlobals')[key] if cache ~= nil then return cache end - cache = getGlobals(name) - vm.getCache('getGlobals')[name] = cache + cache = getGlobals(key) + vm.getCache('getGlobals')[key] = cache return cache end |