File tree 1 file changed +7
-4
lines changed
crates/ruff_server/src/server
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,20 @@ impl Connection {
103
103
tracing:: info!( "Exit notification received. Server shutting down..." ) ;
104
104
return Ok ( true ) ;
105
105
}
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
+ ) ;
107
110
self . sender . send ( lsp:: Message :: Response ( lsp:: Response :: new_err (
108
111
id. clone ( ) ,
109
112
lsp:: ErrorCode :: InvalidRequest as i32 ,
110
113
"Server received unexpected request while waiting for exit notification" . to_string ( ) ,
111
114
) ) ) ?;
112
115
}
113
116
message => {
114
- anyhow :: bail !(
115
- "Server received unexpected message {message:?} while waiting for exit notification"
116
- )
117
+ tracing :: warn !(
118
+ "Server received unexpected message while waiting for exit notification: {message:?} "
119
+ ) ;
117
120
}
118
121
}
119
122
}
You can’t perform that action at this time.
0 commit comments