Closed ryan0270 closed 3 years ago
That is expected, an exit call without a previous shutdown call will exit with code 1, as per the specification:
A notification to ask the server to exit its process. The server should exit with success code 0 if the shutdown request has been received before; otherwise with error code 1.
If you want to stop the server gracefully you can run the command :LanguageClientStop
, which will call LanguageClient#shutdown()
and will not trigger the restart.
Closing this for lack of response, but feel free to re-open if you think this doesn't solve your issue.
:checkhealth LanguageClient
? Everything is OKDescribe the bug
When I explicitly call
LanguageClient#exit()
with a file open, there's a message saying[LC] Server crashed, restarting client
. If I setlet g:LanguageClient_restartOnCrash = 0
this no longer happens.Environment
nvim --version
orvim --version
): 0.4.4git rev-parse --short HEAD
): a42594cbin/languageclient --version
): 0.1.161To Reproduce
Steps to reproduce the behavior:
LanguageClient#exit()
Current behavior
Message appears saying LC has crashed and is being restarted.
Expected behavior
Explicitly choosing to exit LC should not trigger a restart.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.