diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-05-13 17:09:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-05-13 17:10:26 +0800 |
commit | 1d0a33637635a4f5a9a614c4bb0de17202c2d375 (patch) | |
tree | 828b2932ffc68f06c1f73921e9c62a3220e93b03 /test/crossfile/hover.lua | |
parent | d7daade3a3b8f4a5e33bca3df7ec0656d93684c2 (diff) | |
download | lua-language-server-1d0a33637635a4f5a9a614c4bb0de17202c2d375.zip |
改成使用自己的 file-uri
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r-- | test/crossfile/hover.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index b0e5a55f..f2560673 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -61,10 +61,10 @@ function TEST(data) ws.root = ROOT local targetScript = data[1].content - local targetUri = uric.encode(fs.path(data[1].path)) + local targetUri = uric.encode(ROOT / fs.path(data[1].path)) local sourceScript, sourceList = catch_target(data[2].content, '?') - local sourceUri = uric.encode(fs.path(data[2].path)) + local sourceUri = uric.encode(ROOT / fs.path(data[2].path)) lsp:saveText(targetUri, 1, targetScript) ws:addFile(uric.decode(targetUri)) |