diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 17:51:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 17:51:22 +0800 |
commit | b1c20a1f24cc7e17d446b2ac4e4118c36173dc20 (patch) | |
tree | a55942645f0cbc5db38aad471ac92e2d5b4c7c8c /script/core/diagnostics/deprecated.lua | |
parent | a555b92349e2ab07b9111a296618a69caa068032 (diff) | |
download | lua-language-server-b1c20a1f24cc7e17d446b2ac4e4118c36173dc20.zip |
update
Diffstat (limited to 'script/core/diagnostics/deprecated.lua')
-rw-r--r-- | script/core/diagnostics/deprecated.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics/deprecated.lua b/script/core/diagnostics/deprecated.lua index 5fe36c42..1c248646 100644 --- a/script/core/diagnostics/deprecated.lua +++ b/script/core/diagnostics/deprecated.lua @@ -23,10 +23,10 @@ return function (uri, callback) if not key then return end - if config.get(nil, 'Lua.diagnostics.globals')[key] then + if config.get(uri, 'Lua.diagnostics.globals')[key] then return end - if config.get(nil, 'Lua.runtime.special')[key] then + if config.get(uri, 'Lua.runtime.special')[key] then return end end @@ -83,7 +83,7 @@ return function (uri, callback) end table.sort(versions) if #versions > 0 then - message = ('%s(%s)'):format(message, lang.script('DIAG_DEFINED_VERSION', table.concat(versions, '/'), config.get(nil, 'Lua.runtime.version'))) + message = ('%s(%s)'):format(message, lang.script('DIAG_DEFINED_VERSION', table.concat(versions, '/'), config.get(uri, 'Lua.runtime.version'))) end end cache[id] = { |