summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-18 16:37:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-18 16:37:56 +0800
commit9d955bee3c8471ecb2babc63be4794118890af14 (patch)
tree2e8f72701fe3a4655414b24f75a6c1fffe6ab4f4 /script/provider/provider.lua
parent69c0e4c50101ee29ac1459897495d4c1219bb8c8 (diff)
downloadlua-language-server-9d955bee3c8471ecb2babc63be4794118890af14.zip
no longer ignore file names case in Windows
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index e1cb86c3..477a342c 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -134,8 +134,8 @@ proto.on('workspace/didChangeWatchedFiles', function (params)
local path = furi.decode(uri)
local filename = fs.path(path):filename():string()
-- 排除类文件发生更改需要重新扫描
- if files.eq(filename, '.gitignore')
- or files.eq(filename, '.gitmodules') then
+ if filename == '.gitignore'
+ or filename == '.gitmodules' then
workspace.reload()
break
end
@@ -180,7 +180,7 @@ proto.on('workspace/didRenameFiles', function (params)
for _, uri in ipairs(childs) do
local ctext = files.getOriginText(uri)
if ctext then
- local ouri = files.getOriginUri(uri)
+ local ouri = uri
local tail = ouri:sub(#file.oldUri)
local nuri = file.newUri .. tail
log.debug('workspace/didRenameFiles#child', ouri, nuri)