diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-28 16:47:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-28 16:47:37 +0800 |
commit | f859ed45793a7a6be015de45c1e17cdaab27a1af (patch) | |
tree | e9ce65f5270d9df735eb6f3174d1807058d1ce6e /script/core | |
parent | e6a689c92e455db4a7fe70affbe7bf9213aa6301 (diff) | |
download | lua-language-server-f859ed45793a7a6be015de45c1e17cdaab27a1af.zip |
resolve #691
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/command/autoRequire.lua | 2 | ||||
-rw-r--r-- | script/core/completion.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/command/autoRequire.lua b/script/core/command/autoRequire.lua index aa641967..ca8826d7 100644 --- a/script/core/command/autoRequire.lua +++ b/script/core/command/autoRequire.lua @@ -135,7 +135,7 @@ return function (data) end local path = furi.decode(target) - local visiblePaths = rpath.getVisiblePath(path, config.get 'Lua.runtime.path') + local visiblePaths = rpath.getVisiblePath(path) if not visiblePaths or #visiblePaths == 0 then return end diff --git a/script/core/completion.lua b/script/core/completion.lua index 74017ec6..8b31614d 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -885,7 +885,7 @@ local function collectRequireNames(mode, myUri, literal, source, smark, position goto CONTINUE end local path = workspace.getRelativePath(uri) - local infos = rpath.getVisiblePath(path, config.get 'Lua.runtime.path') + local infos = rpath.getVisiblePath(path) for _, info in ipairs(infos) do if matchKey(literal, info.expect) then if not collect[info.expect] then |