File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl<'a> RequestDispatcher<'a> {
2323 ) -> Result < & mut Self >
2424 where
2525 R : lsp_types:: request:: Request + ' static ,
26- R :: Params : DeserializeOwned + panic:: UnwindSafe + ' static ,
26+ R :: Params : DeserializeOwned + panic:: UnwindSafe + fmt :: Debug + ' static ,
2727 R :: Result : Serialize + ' static ,
2828 {
2929 let ( id, params) = match self . parse :: < R > ( ) {
@@ -34,6 +34,7 @@ impl<'a> RequestDispatcher<'a> {
3434 } ;
3535 let world = panic:: AssertUnwindSafe ( & mut * self . global_state ) ;
3636 let response = panic:: catch_unwind ( move || {
37+ stdx:: panic_context:: enter ( format ! ( "request: {} {:#?}" , R :: METHOD , params) ) ;
3738 let result = f ( world. 0 , params) ;
3839 result_to_response :: < R > ( id, result)
3940 } )
@@ -159,6 +160,7 @@ impl<'a> NotificationDispatcher<'a> {
159160 return Ok ( self ) ;
160161 }
161162 } ;
163+ stdx:: panic_context:: enter ( format ! ( "notification: {}" , N :: METHOD ) ) ;
162164 f ( self . global_state , params) ?;
163165 Ok ( self )
164166 }
You can’t perform that action at this time.
0 commit comments