/// Runs the main loop of the LSP server.
///
/// This method finishes when `exit` notification is received.
Runs the main loop of the LSP server.
This method finishes when `exit` notification is received.
Runs the main loop of the LSP server . This method finishes when ` exit ` notification is received .
pub fn run<R: Read, W: Write + Send + 'static>(server: Server<R, W>) {
    let mut state = State {
        source_map: SourceMap::new(),
        sender: server.sender(),
    };
    for msg in server {
        state.handle_message(msg);
    }
}
pub fn run < R : Read , W : Write + Send + ' static > ( server : Server < R , W > ) { let mut state = State { source_map : SourceMap :: new ( ) , sender : server . sender ( ) , } ; for msg in server { state . handle_message ( msg ) ; } }
Runs the main loop of the LSP server.
Runs the main loop of the LSP server .
server
Server<R, W>