Module server

Source
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(())) on exit notification.
  • Responds unrelated requests with errors and ignore unrelated notifications during initialization and shutting down.

Structsยง

Lifecycle
The middleware handling Language Server lifecycle.
LifecycleLayer
A tower_layer::Layer which builds Lifecycle.
ResponseFuture
The Future type used by the Lifecycle middleware.