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 /script | |
parent | fc5739048c8195b4cbfee42e15af972c94f148c9 (diff) | |
download | lua-language-server-b53c18f1fe69c07c65378892ea42346c593f5023.zip |
don't diagnose git uri
fix #2267
Diffstat (limited to 'script')
-rw-r--r-- | script/file-uri.lua | 3 |
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 |