diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 16:37:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 16:37:56 +0800 |
commit | 9d955bee3c8471ecb2babc63be4794118890af14 (patch) | |
tree | 2e8f72701fe3a4655414b24f75a6c1fffe6ab4f4 /script/core/hover | |
parent | 69c0e4c50101ee29ac1459897495d4c1219bb8c8 (diff) | |
download | lua-language-server-9d955bee3c8471ecb2babc63be4794118890af14.zip |
no longer ignore file names case in Windows
Diffstat (limited to 'script/core/hover')
-rw-r--r-- | script/core/hover/description.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index 5bb86603..b58a08b7 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -31,9 +31,8 @@ local function asStringInRequire(source, literal) local shows = {} for i, uri in ipairs(result) do local searcher = searchers and searchers[uri] - uri = files.getOriginUri(uri) local path = furi.decode(uri) - if files.eq(path:sub(1, #rootPath), rootPath) then + if path:sub(1, #rootPath) == rootPath then path = path:sub(#rootPath + 1) end path = path:gsub('^[/\\]*', '') |