summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-02 17:58:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-02 17:58:34 +0800
commit3254ba0c91e682f7c2487c4633309c10a86c82c6 (patch)
tree6834e4d07cfb18c7bf9d68860167ab6793b75656
parentf5ae885f62c8bf5a3b6086177b5a703406459916 (diff)
downloadlua-language-server-3254ba0c91e682f7c2487c4633309c10a86c82c6.zip
still using `didChangeWatchedFiles`
-rw-r--r--changelog.md2
-rw-r--r--script/glob/gitignore.lua9
-rw-r--r--script/workspace/workspace.lua2
3 files changed, 3 insertions, 10 deletions
diff --git a/changelog.md b/changelog.md
index e6682a13..ae7d16cc 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,7 +4,7 @@
* `NEW` `VSCode` hint
* `NEW` flush cache after 5 min
* `NEW` `VSCode` help semantic color with market theme
-* `CHG` create/delete/rename files no longer reload workspace (only if client supports file operation protocol)
+* `CHG` create/delete/rename files no longer reload workspace
* `CHG` `LuaDoc`: compatible with `--@`
* `FIX` `VSCode` settings
* `FIX` [#368](https://github.com/sumneko/lua-language-server/issues/368)
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua
index 7dfd4591..46d9d573 100644
--- a/script/glob/gitignore.lua
+++ b/script/glob/gitignore.lua
@@ -153,14 +153,7 @@ function mt:scan(root, callback)
if type(callback) ~= 'function' then
callback = nil
end
- local list = {}
- local result = self:callInterface('list', root)
- if type(result) ~= 'table' then
- return files
- end
- for _, path in ipairs(result) do
- list[#list+1] = path
- end
+ local list = { root }
while #list > 0 do
local current = list[#list]
if not current then
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 2e47bb7e..667a05f2 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -261,7 +261,7 @@ function m.awaitLoadFile(uri)
local native = m.getNativeMatcher()
if native then
log.info('Scan files at:', m.path)
- native:scan(uri, nativeLoader)
+ native:scan(furi.decode(uri), nativeLoader)
end
end