summaryrefslogtreecommitdiff
path: root/script-beta/vm/getLinks.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-12 15:00:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-12 15:00:44 +0800
commitd97702c96c818e10cad9d82e0ab779c5e16090d1 (patch)
tree97036289946aa3127f1235dbe6bbbd0a6e6fe3de /script-beta/vm/getLinks.lua
parent93460788ba915bed17f15982036563bc75b1e274 (diff)
downloadlua-language-server-d97702c96c818e10cad9d82e0ab779c5e16090d1.zip
修正bug
Diffstat (limited to 'script-beta/vm/getLinks.lua')
-rw-r--r--script-beta/vm/getLinks.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua
index 6a19fbc8..0d95fa89 100644
--- a/script-beta/vm/getLinks.lua
+++ b/script-beta/vm/getLinks.lua
@@ -15,10 +15,10 @@ local function getFileLinks(uri)
return
end
local args = call.args
- if type(args[1]) ~= 'string' then
+ if not args[1] or args[1].type ~= 'string' then
return
end
- local uris = ws.findUrisByRequirePath(args[1], true)
+ local uris = ws.findUrisByRequirePath(args[1][1], true)
for _, u in ipairs(uris) do
u = files.asKey(u)
if not links[u] then