diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-05 14:19:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-05 14:19:56 +0800 |
commit | f3768e21a732683c181ec17401d7ba63f68b3635 (patch) | |
tree | 19f674d9134d685a75e6fc4b0940a420c6eb0488 /server/src/uri.lua | |
parent | 2dd41281796f3a504b5b5e8192bb109e1ffaf178 (diff) | |
download | lua-language-server-f3768e21a732683c181ec17401d7ba63f68b3635.zip |
过滤掉不支持的uri
Diffstat (limited to 'server/src/uri.lua')
-rw-r--r-- | server/src/uri.lua | 2 |
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) |