summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-11 18:07:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-11 18:07:54 +0800
commit1ae7b425b75f630b3cdb3479137ace7215389580 (patch)
tree115e738e91a5538bfd06aa37b272877e2dd16c73 /script-beta/vm
parentf3c18b9573f31981f8e09c4cb63424f8de816929 (diff)
downloadlua-language-server-1ae7b425b75f630b3cdb3479137ace7215389580.zip
修正一些bug
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getLinks.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua
index 8032f55a..b034fd24 100644
--- a/script-beta/vm/getLinks.lua
+++ b/script-beta/vm/getLinks.lua
@@ -19,3 +19,13 @@ function vm.getLinksTo(uri)
vm.getCache('getLinksTo')[uri] = cache
return cache
end
+
+function vm.getFileLinks(uri)
+ local cache = vm.getCache('getFileLinks')[uri]
+ if cache ~= nil then
+ return cache
+ end
+ cache = getFileLinks(uri)
+ vm.getCache('getFileLinks')[uri] = cache
+ return cache
+end