pub fn run_session(
connection: Connection,
io_threads: IoThreads,
startup_notice: Option<String>,
) -> Result<()>Expand description
Runs a full LSP session over connection: waits for the client’s initialize,
negotiates capabilities, then runs the main loop until the client disconnects or
requests shutdown.
§Errors
Returns an error if the connection breaks down or the main loop exits abnormally.