diff options
Diffstat (limited to 'script/core/diagnostics/undefined-global.lua')
-rw-r--r-- | script/core/diagnostics/undefined-global.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/diagnostics/undefined-global.lua b/script/core/diagnostics/undefined-global.lua index 139fa74f..bd0aae69 100644 --- a/script/core/diagnostics/undefined-global.lua +++ b/script/core/diagnostics/undefined-global.lua @@ -4,7 +4,6 @@ local lang = require 'language' local config = require 'config' local guide = require 'parser.guide' local await = require 'await' -local globalMgr = require 'vm.global-manager' local requireLike = { ['include'] = true, @@ -41,7 +40,7 @@ return function (uri, callback) return end if cache[key] == nil then - cache[key] = globalMgr.hasGlobalSets(uri, 'variable', key) + cache[key] = vm.hasGlobalSets(uri, 'variable', key) end if cache[key] then return |