diff options
Diffstat (limited to 'script-beta/core/diagnostics/undefined-global.lua')
-rw-r--r-- | script-beta/core/diagnostics/undefined-global.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/diagnostics/undefined-global.lua b/script-beta/core/diagnostics/undefined-global.lua index 3a9aa554..6b78225c 100644 --- a/script-beta/core/diagnostics/undefined-global.lua +++ b/script-beta/core/diagnostics/undefined-global.lua @@ -19,7 +19,7 @@ return function (uri, callback) return end if globalCache[key] == nil then - local defs = guide.requestDefinition(src) + local defs = vm.getDefs(src) -- 这里要处理跨文件的情况 globalCache[key] = #defs > 0 end |