summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-15 15:50:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-15 15:50:44 +0800
commitb53c18f1fe69c07c65378892ea42346c593f5023 (patch)
tree6f205a128471d3f2716531d568b598fefa6d96e7 /script
parentfc5739048c8195b4cbfee42e15af972c94f148c9 (diff)
downloadlua-language-server-b53c18f1fe69c07c65378892ea42346c593f5023.zip
don't diagnose git uri
fix #2267
Diffstat (limited to 'script')
-rw-r--r--script/file-uri.lua3
1 files changed, 3 insertions, 0 deletions
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