helix/helix-lsp/src
Michael Davis 8be2d1dcbf
Handle language server termination (#4797)
This change handles a language server exiting. This was a UX sore-spot:
if a language server crashed, Helix did not recognize the exit and
continued to send requests to it. All requests would timeout since they
would not receive responses. This would also hold-up Helix closing
itself down since it would try to gracefully shutdown the server which
is implemented in the LSP spec as a request.

We could attempt to automatically restart the language server on crash.
I left this for future work since that change will need to be slightly
complicated: it will need to cover the case of a language server
repeatedly crashing.
2022-11-19 13:14:36 +09:00
..
client.rs lsp: Resolve completion item asynchronously on idle-timeout (#4781) 2022-11-19 03:27:46 +09:00
jsonrpc.rs Resolve a bunch of upcoming clippy lints 2022-11-04 21:06:28 +09:00
lib.rs Handle language server termination (#4797) 2022-11-19 13:14:36 +09:00
transport.rs Handle language server termination (#4797) 2022-11-19 13:14:36 +09:00