The Language Server abstraction provided by tower_lsp does not offer sufficient protection against possible panics in the server code.
If it catches a panic it restarts the entire server.
Do something to protect the server against panics and allow it to still work even after a particular request critically fails.
The Language Server abstraction provided by
tower_lsp
does not offer sufficient protection against possible panics in the server code. If it catches a panic it restarts the entire server.Do something to protect the server against panics and allow it to still work even after a particular request critically fails.