summaryrefslogtreecommitdiff
path: root/script-beta/vm/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-23 17:18:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-23 17:18:26 +0800
commitf345904350c074438b25941fb29d00eb4f84e7a0 (patch)
tree7310ba1f8f6076627d73d5e0af1f7c54070fbb54 /script-beta/vm/getGlobals.lua
parent7a9c274c01e50684d4c094c7d5db45670336ff2f (diff)
downloadlua-language-server-f345904350c074438b25941fb29d00eb4f84e7a0.zip
部分 global
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 ec575e8e..8ac63090 100644
--- a/script-beta/vm/getGlobals.lua
+++ b/script-beta/vm/getGlobals.lua
@@ -11,7 +11,7 @@ local function getGlobalsOfFile(uri)
local env = guide.getENV(ast.ast)
local results = guide.requestFields(env)
for _, res in ipairs(results) do
- local name = guide.getName(res)
+ local name = guide.getSimpleName(res)
if not globals[name] then
globals[name] = {}
end