diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-25 17:43:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-25 17:43:22 +0800 |
commit | bd17ba6c89c27310c893877bd5df8c00d09974e1 (patch) | |
tree | 51b90ca09419147da914287a0b5b7c68cb3d515d /server/src/async | |
parent | 2355aad7f904fe95f7942ce597f049337dfb01ae (diff) | |
download | lua-language-server-bd17ba6c89c27310c893877bd5df8c00d09974e1.zip |
更新配置
Diffstat (limited to 'server/src/async')
-rw-r--r-- | server/src/async/scanfiles.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/async/scanfiles.lua b/server/src/async/scanfiles.lua index 6783f97b..13a8f1c8 100644 --- a/server/src/async/scanfiles.lua +++ b/server/src/async/scanfiles.lua @@ -42,6 +42,11 @@ for _, name in ipairs(args.ignored) do end local filter = path_filter(ignore) for path in scan(fs.path(args.root), filter) do + local ok, msg = IN:pop() + if ok and msg == 'stop' then + OUT:push 'stop' + return + end if path:extension():string() == '.lua' then local buf = io.load(path) if buf then |