summaryrefslogtreecommitdiff
path: root/script-beta/vm/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-29 11:08:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-29 11:08:28 +0800
commit5cd2e0110dfe2d1bc8c141af74baa53dab448c66 (patch)
treeecccd44e7d90167f701f89dc3f2ade465785b8bf /script-beta/vm/getGlobals.lua
parent0b1bbe021805f7ac9bf616ac78f7dc316af05f81 (diff)
downloadlua-language-server-5cd2e0110dfe2d1bc8c141af74baa53dab448c66.zip
修正搜索全局变量的bug
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r--script-beta/vm/getGlobals.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua
index 2e3cd019..c5d6dc21 100644
--- a/script-beta/vm/getGlobals.lua
+++ b/script-beta/vm/getGlobals.lua
@@ -32,7 +32,7 @@ end
local function getGlobals(name)
local results = {}
- for uri in files:eachFile() do
+ for uri in files.eachFile() do
local cache = files.getCache(uri)
cache.globals = cache.globals or getGlobalsOfFile(uri)
if name == '*' then