Expand description
Language Server lifecycle.
Only applies to Language Servers.
This middleware handles the lifecycle of Language Servers, specifically:
- Exit the main loop with
ControlFlow::Break(Ok(()))
onexit
notification. - Responds unrelated requests with errors and ignore unrelated notifications during initialization and shutting down.
Structsยง
- Lifecycle
- The middleware handling Language Server lifecycle.
- Lifecycle
Layer - A
tower_layer::Layer
which buildsLifecycle
. - Response
Future - The
Future
type used by theLifecycle
middleware.