summaryrefslogtreecommitdiff
path: root/script-beta/vm/getLibrary.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-25 15:01:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-25 15:01:34 +0800
commit123f9d3647c464a6a38cbf90e5accf39c8fb40ba (patch)
tree491059fa03a102a82999afd47defa290396394f8 /script-beta/vm/getLibrary.lua
parent1e11d151c29b1e107c09ef694ed9fe2d929b6fc9 (diff)
downloadlua-language-server-123f9d3647c464a6a38cbf90e5accf39c8fb40ba.zip
解耦
Diffstat (limited to 'script-beta/vm/getLibrary.lua')
-rw-r--r--script-beta/vm/getLibrary.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getLibrary.lua b/script-beta/vm/getLibrary.lua
index 395a5b74..34047805 100644
--- a/script-beta/vm/getLibrary.lua
+++ b/script-beta/vm/getLibrary.lua
@@ -97,7 +97,7 @@ local function getLibrary(source)
end
function vm.getLibrary(source)
- local cache = vm.cache.getLibrary[source]
+ local cache = vm.getCache('getLibrary')[source]
if cache ~= nil then
return cache
end
@@ -106,7 +106,7 @@ function vm.getLibrary(source)
return
end
cache = getLibrary(source) or false
- vm.cache.getLibrary[source] = cache
+ vm.getCache('getLibrary')[source] = cache
unlock()
return cache
end