File tree Expand file tree Collapse file tree
crates/ruff_server/src/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,16 +103,19 @@ impl Connection {
103103 tracing:: info!( "Exit notification received. Server shutting down..." ) ;
104104 return Ok ( true ) ;
105105 }
106- lsp:: Message :: Request ( lsp:: Request { id, .. } ) => {
106+ lsp:: Message :: Request ( lsp:: Request { id, method, .. } ) => {
107+ tracing:: warn!(
108+ "Server received unexpected request {method} ({id}) while waiting for exit notification" ,
109+ ) ;
107110 self . sender . send ( lsp:: Message :: Response ( lsp:: Response :: new_err (
108111 id. clone ( ) ,
109112 lsp:: ErrorCode :: InvalidRequest as i32 ,
110113 "Server received unexpected request while waiting for exit notification" . to_string ( ) ,
111114 ) ) ) ?;
112115 }
113116 message => {
114- anyhow :: bail !(
115- "Server received unexpected message {message:?} while waiting for exit notification"
117+ tracing :: warn !(
118+ "Server received unexpected message while waiting for exit notification: {message:?} "
116119 )
117120 }
118121 }
You can’t perform that action at this time.
0 commit comments