Commit 9a03628 1 parent 87e61ae commit 9a03628 Copy full SHA for 9a03628
File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
"rust-analyzer.check.command" : " clippy" ,
13
13
"rewrap.wrappingColumn" : 90 ,
14
- "rust-analyzer.cargo.features" : " all"
14
+ "rust-analyzer.cargo.features" : " all" ,
15
+ "rust-analyzer.debug.openDebugPane" : true
15
16
}
Original file line number Diff line number Diff line change @@ -506,8 +506,14 @@ impl Spec {
506
506
args. push ( preceding_token) ;
507
507
}
508
508
509
+ // TODO: Find a more appropriate interlock here. For now we use the existing
510
+ // handler depth count to suppress any debug traps.
511
+ shell. traps . handler_depth += 1 ;
512
+
509
513
let result = shell. invoke_function ( function_name, & args) . await ?;
510
514
515
+ shell. traps . handler_depth -= 1 ;
516
+
511
517
tracing:: debug!( "[called completion func '{function_name}' => {result}]" ) ;
512
518
513
519
// When the function returns the special value 124, then it's a request
You can’t perform that action at this time.
0 commit comments