diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-17 20:52:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-17 20:52:05 +0800 |
commit | 5c39b8fc967b1dec072d9dcd01bee4752f184044 (patch) | |
tree | 3331e16b82f0ca9af16754db14219134d9dea9b6 /script/workspace | |
parent | 1f1f00ff531dabccd6cda3db379eab80bf8eee82 (diff) | |
download | lua-language-server-5c39b8fc967b1dec072d9dcd01bee4752f184044.zip |
fix tests
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 6047d398..6d5c8034 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -346,6 +346,9 @@ function m.findUrisByFilePath(path) local results = {} local posts = {} for uri in files.eachFile() do + if platform.OS ~= 'Windows' then + uri = files.getOriginUri(uri) + end if not uri:find(lpath, 1, true) then goto CONTINUE end @@ -424,9 +427,6 @@ function m.normalize(path) path = path:gsub('[/\\]+', '/') :gsub('[/\\]+$', '') end - path = path:gsub('^%a+%:', function (str) - return str:upper() - end) return path end |