diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-03-08 21:41:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-03-08 21:41:19 +0800 |
commit | 2704d390c550515d1b510a7277841288ee73f1bb (patch) | |
tree | 64efa616053a1ab08943bd31136a74b3351c5c9d | |
parent | c6820ed9972fe26594c1661d3887fb1d9a6dda1e (diff) | |
download | lua-language-server-2704d390c550515d1b510a7277841288ee73f1bb.zip |
keep invalid uri
fix #1924
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | script/files.lua | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 41a5224b..ca782368 100644 --- a/changelog.md +++ b/changelog.md @@ -5,11 +5,13 @@ * `FIX` [#1753] * `FIX` [#1914] * `FIX` [#1922] +* `FIX` [#1924] [#1715]: https://github.com/LuaLS/lua-language-server/issues/1715 [#1753]: https://github.com/LuaLS/lua-language-server/issues/1753 [#1914]: https://github.com/LuaLS/lua-language-server/issues/1914 [#1922]: https://github.com/LuaLS/lua-language-server/issues/1922 +[#1924]: https://github.com/LuaLS/lua-language-server/issues/1924 ## 3.6.13 `2023-3-2` 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) |