diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-11 19:31:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-11 19:31:04 +0800 |
commit | 91af49cdfd292b7e479e6e0327d04c436256ed7b (patch) | |
tree | 20c15d08d5db62e95505b9895bb15cdf01c58a1c /server-beta/src/files.lua | |
parent | 8f5bc53c9fd5d289cf82e5dfb55a8e9912fb8e82 (diff) | |
download | lua-language-server-91af49cdfd292b7e479e6e0327d04c436256ed7b.zip |
过单文件 reference 测试
Diffstat (limited to 'server-beta/src/files.lua')
-rw-r--r-- | server-beta/src/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/files.lua b/server-beta/src/files.lua index ad2d9552..0f3d721f 100644 --- a/server-beta/src/files.lua +++ b/server-beta/src/files.lua @@ -223,9 +223,9 @@ function m.findGlobals(name) local uris = {} for uri, file in pairs(m.fileMap) do if not file.globals then + file.globals = {} local ast = m.getAst(uri) if ast then - file.globals = {} local globals = searcher.getGlobals(ast.ast) for name in pairs(globals) do file.globals[name] = true |