summaryrefslogtreecommitdiff
path: root/server/src/method/workspace/didChangeWorkspaceFolders.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-22 11:22:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-22 11:22:30 +0800
commitc0cb126d73007c618e2887776a04f94882ad6021 (patch)
tree84a71e3b95c77e05de059eb4384992566d024ff4 /server/src/method/workspace/didChangeWorkspaceFolders.lua
parent3cb5179696f5a12cdb00de84829faaf2a69a84ce (diff)
downloadlua-language-server-c0cb126d73007c618e2887776a04f94882ad6021.zip
内存占用过高自动重启
Diffstat (limited to 'server/src/method/workspace/didChangeWorkspaceFolders.lua')
-rw-r--r--server/src/method/workspace/didChangeWorkspaceFolders.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/method/workspace/didChangeWorkspaceFolders.lua b/server/src/method/workspace/didChangeWorkspaceFolders.lua
index dc8bb4a1..01a28abd 100644
--- a/server/src/method/workspace/didChangeWorkspaceFolders.lua
+++ b/server/src/method/workspace/didChangeWorkspaceFolders.lua
@@ -14,4 +14,7 @@ return function ()
}, function ()
os.exit(true)
end)
+ ac.wait(5, function ()
+ os.exit(true)
+ end)
end