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/diagnostics/undefined-global.lua | |
parent | 2ee33dade7af1129ec792e69c51c993d853da54a (diff) | |
download | lua-language-server-fecdb2af1ceba45021486d1e28d8e11f490d2b36.zip |
fix
Diffstat (limited to 'script/core/diagnostics/undefined-global.lua')
-rw-r--r-- | script/core/diagnostics/undefined-global.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/undefined-global.lua b/script/core/diagnostics/undefined-global.lua index 5ac5106d..b570ca65 100644 --- a/script/core/diagnostics/undefined-global.lua +++ b/script/core/diagnostics/undefined-global.lua @@ -39,7 +39,7 @@ return function (uri, callback) end await.delay() local id = 'def:' .. noder.getID(src) - if not collector:has(id) then + if not collector:has(uri, id) then local message = lang.script('DIAG_UNDEF_GLOBAL', key) if requireLike[key:lower()] then message = ('%s(%s)'):format(message, lang.script('DIAG_REQUIRE_LIKE', key)) |