summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-22 16:36:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-22 16:36:29 +0800
commit1cc1be17cd3af205fda7ec80b333bf020a929fda (patch)
treed5da46d9932d4cb2677430dec168c0ea37bc7eb6 /script/core
parentd09c74c69306fa5b3deb0db68552c9223b6d76df (diff)
downloadlua-language-server-1cc1be17cd3af205fda7ec80b333bf020a929fda.zip
handle `../?.lua`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index b2f74aa8..09d276a6 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -913,7 +913,7 @@ local function collectRequireNames(mode, myUri, literal, source, smark, position
goto CONTINUE
end
local path = furi.decode(uri)
- local infos = rpath.getVisiblePath(uri, path)
+ local infos = rpath.getVisiblePath(myUri, path)
local relative = workspace.getRelativePath(path)
for _, info in ipairs(infos) do
if matchKey(literal, info.name) then