diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-15 15:50:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-15 15:50:44 +0800 |
commit | b53c18f1fe69c07c65378892ea42346c593f5023 (patch) | |
tree | 6f205a128471d3f2716531d568b598fefa6d96e7 | |
parent | fc5739048c8195b4cbfee42e15af972c94f148c9 (diff) | |
download | lua-language-server-b53c18f1fe69c07c65378892ea42346c593f5023.zip |
don't diagnose git uri
fix #2267
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | script/file-uri.lua | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 61f5eeca..38e53e95 100644 --- a/changelog.md +++ b/changelog.md @@ -7,9 +7,11 @@ * `FIX` wrong hover and signature for method with varargs and overloads * `FIX` [#2155] * `FIX` [#2224] +* `FIX` [#2267] [#2155]: https://github.com/LuaLS/lua-language-server/issues/2155 [#2224]: https://github.com/LuaLS/lua-language-server/issues/2224 +[#2267]: https://github.com/LuaLS/lua-language-server/issues/2267 ## 3.6.25 `2023-7-26` diff --git a/script/file-uri.lua b/script/file-uri.lua index 07791ca0..8a075f7e 100644 --- a/script/file-uri.lua +++ b/script/file-uri.lua @@ -102,6 +102,9 @@ function m.isValid(uri) if path == '' then return false end + if scheme ~= 'file' then + return false + end return true end |