summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorxl000 <l_xb@foxmail.com>2019-04-17 01:16:12 +0800
committerxl000 <l_xb@foxmail.com>2019-04-17 01:16:12 +0800
commitae53ebf48299680b8906e848903fb32d56ee90a5 (patch)
treeb4c2c5a410b8cff43e46f22101e372253b6472a5 /server/test
parente676b97ee6c54ac843b51f2d6062689a428f0c28 (diff)
downloadlua-language-server-ae53ebf48299680b8906e848903fb32d56ee90a5.zip
Unix-like系统路径问题,osx下测试通过
Diffstat (limited to 'server/test')
-rw-r--r--server/test/crossfile/hover.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua
index cdc4ebca..41aef8dc 100644
--- a/server/test/crossfile/hover.lua
+++ b/server/test/crossfile/hover.lua
@@ -76,7 +76,8 @@ function TEST(data)
local hover = core.hover(source, lsp)
assert(hover)
if data.hover.description then
- data.hover.description = data.hover.description:gsub('%$ROOT%$', ws:uriEncode(ROOT):gsub('%%', '%%%%'))
+ local uriROOT = ws:uriEncode(ROOT):gsub('%%', '%%%%')
+ data.hover.description = data.hover.description:gsub('%$ROOT%$', uriROOT)
end
if hover.label then
hover.label = hover.label:gsub('\r\n', '\n')