diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:30:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:30:42 +0800 |
commit | 77c15299948450fee84b42a5af55328dabf032e4 (patch) | |
tree | fccc0f76c01a654c57ba34461a4389dbbadb55b3 /script/core | |
parent | f05a68d38a0915fae1303a86229f4f4c9fd96ecb (diff) | |
download | lua-language-server-77c15299948450fee84b42a5af55328dabf032e4.zip |
improve
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion.lua | 2 |
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 |