summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-04 19:35:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-04 19:35:28 +0800
commit87834511ff48f68a1e972c8e8ec78c8d2dcf71e7 (patch)
tree3e8c29923720a2a23b4da59e146e29f11bff3118 /script/core
parenta694873f15841e7138228b92f1fb28d8f4756900 (diff)
downloadlua-language-server-87834511ff48f68a1e972c8e8ec78c8d2dcf71e7.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/command/autoRequire.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/command/autoRequire.lua b/script/core/command/autoRequire.lua
index 2f4dfa21..c0deecfc 100644
--- a/script/core/command/autoRequire.lua
+++ b/script/core/command/autoRequire.lua
@@ -64,7 +64,7 @@ local function findInsertRow(uri)
end
---@async
-local function askAutoRequire(visiblePaths)
+local function askAutoRequire(uri, visiblePaths)
local selects = {}
local nameMap = {}
for _, visible in ipairs(visiblePaths) do
@@ -91,6 +91,7 @@ local function askAutoRequire(visiblePaths)
key = 'Lua.completion.autoRequire',
action = 'set',
value = false,
+ uri = uri,
}
}
return
@@ -145,7 +146,7 @@ return function (data)
return #a.expect < #b.expect
end)
- local result = askAutoRequire(visiblePaths)
+ local result = askAutoRequire(uri, visiblePaths)
if not result then
return
end