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> {
23
23
) -> Result < & mut Self >
24
24
where
25
25
R : lsp_types:: request:: Request + ' static ,
26
- R :: Params : DeserializeOwned + panic:: UnwindSafe + ' static ,
26
+ R :: Params : DeserializeOwned + panic:: UnwindSafe + fmt :: Debug + ' static ,
27
27
R :: Result : Serialize + ' static ,
28
28
{
29
29
let ( id, params) = match self . parse :: < R > ( ) {
@@ -34,6 +34,7 @@ impl<'a> RequestDispatcher<'a> {
34
34
} ;
35
35
let world = panic:: AssertUnwindSafe ( & mut * self . global_state ) ;
36
36
let response = panic:: catch_unwind ( move || {
37
+ stdx:: panic_context:: enter ( format ! ( "request: {} {:#?}" , R :: METHOD , params) ) ;
37
38
let result = f ( world. 0 , params) ;
38
39
result_to_response :: < R > ( id, result)
39
40
} )
@@ -159,6 +160,7 @@ impl<'a> NotificationDispatcher<'a> {
159
160
return Ok ( self ) ;
160
161
}
161
162
} ;
163
+ stdx:: panic_context:: enter ( format ! ( "notification: {}" , N :: METHOD ) ) ;
162
164
f ( self . global_state , params) ?;
163
165
Ok ( self )
164
166
}
You can’t perform that action at this time.
0 commit comments