summaryrefslogtreecommitdiff
path: root/server/src/uri.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-05 14:19:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-05 14:19:56 +0800
commitf3768e21a732683c181ec17401d7ba63f68b3635 (patch)
tree19f674d9134d685a75e6fc4b0940a420c6eb0488 /server/src/uri.lua
parent2dd41281796f3a504b5b5e8192bb109e1ffaf178 (diff)
downloadlua-language-server-f3768e21a732683c181ec17401d7ba63f68b3635.zip
过滤掉不支持的uri
Diffstat (limited to 'server/src/uri.lua')
-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 ec3cdad6..9053447c 100644
--- a/server/src/uri.lua
+++ b/server/src/uri.lua
@@ -9,7 +9,7 @@ local OS = platform.OS == 'Windows' and 'win32' or 'unix'
local function decode(uri)
local obj = URI:new(uri)
if not obj.filesystem_path then
- return ''
+ return nil
end
local fullPath = obj:filesystem_path(OS)
local path = fs.path(fullPath)