summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-08 21:41:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-08 21:41:19 +0800
commit2704d390c550515d1b510a7277841288ee73f1bb (patch)
tree64efa616053a1ab08943bd31136a74b3351c5c9d /script
parentc6820ed9972fe26594c1661d3887fb1d9a6dda1e (diff)
downloadlua-language-server-2704d390c550515d1b510a7277841288ee73f1bb.zip
keep invalid uri
fix #1924
Diffstat (limited to 'script')
-rw-r--r--script/files.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua
index 16b85068..62f01136 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -81,6 +81,9 @@ function m.getRealUri(uri)
if platform.OS ~= 'Windows' then
return furi.normalize(uri)
end
+ if not furi.isValid(uri) then
+ return uri
+ end
local filename = furi.decode(uri)
-- normalize uri
uri = furi.encode(filename)