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/library.lua | |
parent | 69c0e4c50101ee29ac1459897495d4c1219bb8c8 (diff) | |
download | lua-language-server-9d955bee3c8471ecb2babc63be4794118890af14.zip |
no longer ignore file names case in Windows
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/script/library.lua b/script/library.lua index 0e65d96c..e0c32023 100644 --- a/script/library.lua +++ b/script/library.lua @@ -271,7 +271,7 @@ local function loadSingle3rdConfig(libraryDir) if cfg.files then for i, filename in ipairs(cfg.files) do if plat.OS == 'Windows' then - filename = filename:lower():gsub('/', '\\') + filename = filename:gsub('/', '\\') else filename = filename:gsub('\\', '/') end @@ -413,9 +413,6 @@ local function check3rdByFileName(uri, configs) if not path then return end - if plat.OS == 'Windows' then - path = path:lower() - end await.call(function () for _, cfg in ipairs(configs) do if cfg.files then @@ -473,7 +470,7 @@ end) files.watch(function (ev, uri) if ev == 'update' or ev == 'dll' then - check3rd(files.asKey(uri)) + check3rd(uri) end end) |