diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-19 18:04:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-19 18:04:00 +0800 |
commit | 021ceef2e05c781e849e1bac86eaae6e36775cf9 (patch) | |
tree | 7fb2371f2377c624f9d7a71e1e1fce2b07adde4e /script/core/diagnostics | |
parent | d6859305513099d125f6dad69cb35f29b796bebf (diff) | |
download | lua-language-server-021ceef2e05c781e849e1bac86eaae6e36775cf9.zip |
stash
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r-- | script/core/diagnostics/undefined-global.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/undefined-global.lua b/script/core/diagnostics/undefined-global.lua index 45fc390b..5ac5106d 100644 --- a/script/core/diagnostics/undefined-global.lua +++ b/script/core/diagnostics/undefined-global.lua @@ -4,7 +4,7 @@ local lang = require 'language' local config = require 'config' local guide = require 'parser.guide' local noder = require 'core.noder' -local collector = require 'core.collector' +local collector = require 'core.collector' 'searcher' local await = require 'await' local requireLike = { @@ -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(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)) |