summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-17 20:30:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-17 20:30:42 +0800
commit77c15299948450fee84b42a5af55328dabf032e4 (patch)
treefccc0f76c01a654c57ba34461a4389dbbadb55b3 /script/core
parentf05a68d38a0915fae1303a86229f4f4c9fd96ecb (diff)
downloadlua-language-server-77c15299948450fee84b42a5af55328dabf032e4.zip
improve
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index d261b302..5e98aa15 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -324,7 +324,7 @@ local function checkModule(ast, word, offset, results)
local fileName = path:match '[^/\\]*$'
local stemName = fileName:gsub('%..+', '')
if not locals[stemName]
- and #vm.getGlobalSets(stemName) == 0
+ and not vm.hasGlobalSets(stemName)
and not config.config.diagnostics.globals[stemName]
and stemName:match '^[%a_][%w_]*$'
and matchKey(word, stemName) then