diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-14 20:55:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-14 20:55:05 +0800 |
commit | 1ed09df805c4f068bab668b464fd29e229a2ed60 (patch) | |
tree | 414e13fd7fe2bf8eeed641f0ff80f88b5c258eae /server/src | |
parent | fe66e2ef017c3cd46856605dd39cb9b4266fabbb (diff) | |
download | lua-language-server-1ed09df805c4f068bab668b464fd29e229a2ed60.zip |
#45 通知exit时主动退出
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/method/exit.lua | 3 | ||||
-rw-r--r-- | server/src/method/shutdown.lua | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/src/method/exit.lua b/server/src/method/exit.lua index 716a86e7..fa550243 100644 --- a/server/src/method/exit.lua +++ b/server/src/method/exit.lua @@ -1,3 +1,4 @@ return function () - return true + log.info('Server exited.') + os.exit(true) end diff --git a/server/src/method/shutdown.lua b/server/src/method/shutdown.lua index 716a86e7..bb81306e 100644 --- a/server/src/method/shutdown.lua +++ b/server/src/method/shutdown.lua @@ -1,3 +1,4 @@ return function () + log.info('Server shutdown.') return true end |