summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-08 21:30:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-08 21:30:44 +0800
commit5dc53106c3291bd796b7c9145d6d2b9d695b15c1 (patch)
treef0401232a7402c2ab198224ea202dc61c2bbcfe9 /script/workspace
parent6515fb49d7084c1547e3ccce7c06917e32e2b2da (diff)
downloadlua-language-server-5dc53106c3291bd796b7c9145d6d2b9d695b15c1.zip
fix completion header
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/require-path.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index 220755b4..963cc6d7 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -61,11 +61,12 @@ function m.getVisiblePath(path, searchers, strict)
end
local expect = getOnePath(cutedPath, searcher)
if expect then
+ local mySearcher = searcher
if head then
- searcher = head .. searcher
+ mySearcher = head .. searcher
end
result[#result+1] = {
- searcher = searcher,
+ searcher = mySearcher,
expect = expect,
}
end