summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-03 14:07:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-03 14:07:25 +0800
commit1a2079b397075658c152b000f984d1cee9634c7b (patch)
treedaa2b90895e3a79f3b694f2ff99e5f5c7cd4ea55 /server
parentd24683a456cba86e7aea614df0f73b06205064c7 (diff)
downloadlua-language-server-1a2079b397075658c152b000f984d1cee9634c7b.zip
dofile的路径格式化
Diffstat (limited to 'server')
-rw-r--r--server/src/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/workspace.lua b/server/src/workspace.lua
index ad88848a..aefabb04 100644
--- a/server/src/workspace.lua
+++ b/server/src/workspace.lua
@@ -97,7 +97,6 @@ function mt:init(rootUri)
local path = fs.absolute(self.root / name)
local str = path:string():lower()
ignored[#ignored+1] = str
- log.debug(str)
end
for _, filename in ipairs(list) do
local path = fs.absolute(fs.path(filename))
@@ -247,6 +246,7 @@ function mt:searchPath(baseUri, str)
end
function mt:loadPath(baseUri, str)
+ str = fs.relative(fs.absolute(self.root / str), self.root):string():lower()
if self.loaded[str] then
return self.loaded[str]
end