From b53c18f1fe69c07c65378892ea42346c593f5023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 15 Aug 2023 15:50:44 +0800 Subject: [PATCH] don't diagnose git uri fix #2267 --- changelog.md | 2 ++ script/file-uri.lua | 3 +++ 2 files changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index 61f5eecaa..38e53e952 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 07791ca03..8a075f7ed 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