File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -337,10 +337,10 @@ impl GlobalState {
337
337
fn on_request ( & mut self , request_received : Instant , req : Request ) -> Result < ( ) > {
338
338
self . register_request ( & req, request_received) ;
339
339
340
- if self . status == Status :: Loading {
340
+ if self . status == Status :: Loading && req . method !== "shutdown" {
341
341
self . respond ( lsp_server:: Response :: new_err (
342
342
req. id ,
343
- // FIXME: i32 should impl From<ErrorCode> (from() guarantees lossless conversion)
343
+ // FIXME: i32 should impl From<ErrorCode> (from() guarantees lossless conversion)
344
344
lsp_server:: ErrorCode :: ContentModified as i32 ,
345
345
"Rust Analyzer is still loading..." . to_owned ( ) ,
346
346
) ) ;
@@ -405,6 +405,8 @@ impl GlobalState {
405
405
. on :: < lsp_ext:: Ssr > ( handlers:: handle_ssr) ?
406
406
. finish ( ) ;
407
407
Ok ( ( ) )
408
+ }
409
+ }
408
410
}
409
411
fn on_notification ( & mut self , not : Notification ) -> Result < ( ) > {
410
412
NotificationDispatcher { not : Some ( not) , global_state : self }
You can’t perform that action at this time.
0 commit comments