summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-28 21:16:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-28 21:16:13 +0800
commitbd1a684806a01702a46c05cb7c75d3b01f2fd242 (patch)
tree3291c175c8f02322952ccac2a3003984ecd73aa5 /server/src
parentcd32c1ad7a3fe49a229c5bc53a142f9c2d0fbc9a (diff)
downloadlua-language-server-bd1a684806a01702a46c05cb7c75d3b01f2fd242.zip
修正bug
Diffstat (limited to 'server/src')
-rw-r--r--server/src/uri.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/uri.lua b/server/src/uri.lua
index 4505d554..ec3cdad6 100644
--- a/server/src/uri.lua
+++ b/server/src/uri.lua
@@ -17,7 +17,7 @@ local function decode(uri)
end
local function encode(path)
- local fullPath = fs.absolute(path)
+ local fullPath = fs.absolute(ROOT / path)
local obj = URI_FILE.make_file_uri(fullPath:string(), OS)
local uri = obj:uri()
return uri