diff options
author | sumneko <sumneko@hotmail.com> | 2022-01-23 02:29:34 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-01-23 02:29:34 +0800 |
commit | fecdb2af1ceba45021486d1e28d8e11f490d2b36 (patch) | |
tree | ce8b09f67ecd34637987951a2111bca1e81d5dc7 /script/core/completion | |
parent | 2ee33dade7af1129ec792e69c51c993d853da54a (diff) | |
download | lua-language-server-fecdb2af1ceba45021486d1e28d8e11f490d2b36.zip |
fix
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 9eb33c2a..b65ee0d8 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -336,7 +336,7 @@ local function checkModule(state, word, position, results) local fileName = path:match '[^/\\]*$' local stemName = fileName:gsub('%..+', '') if not locals[stemName] - and not vm.hasGlobalSets(stemName) + and not vm.hasGlobalSets(state.uri, stemName) and not config.get(state.uri, 'Lua.diagnostics.globals')[stemName] and stemName:match '^[%a_][%w_]*$' and matchKey(word, stemName) then |