summaryrefslogtreecommitdiff
path: root/script/workspace/require-path.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-29 14:11:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-29 14:11:31 +0800
commitd60714d55e8cca299cd9715f781af5caaac72552 (patch)
tree461e762cefcd06c4158e843680358beb007f5381 /script/workspace/require-path.lua
parent4190a3e8ebd0ff1408fc47927394970de952f18c (diff)
downloadlua-language-server-d60714d55e8cca299cd9715f781af5caaac72552.zip
fix
Diffstat (limited to 'script/workspace/require-path.lua')
-rw-r--r--script/workspace/require-path.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index 8048f8ef..1b7b25f9 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -169,7 +169,7 @@ function mt:findUrisByRequireName(suri, name)
local searcherMap = {}
for _, searcher in ipairs(searchers) do
- local fspath = searcher:gsub('%?', path:gsub('%%', '%%%%'))
+ local fspath = searcher:gsub('%?', (path:gsub('%%', '%%%%')))
local fullPath = workspace.getAbsolutePath(self.scp.uri, fspath)
if fullPath then
local fullUri = furi.encode(fullPath)