File tree 1 file changed +5
-2
lines changed
src/vs/workbench/parts/debug/electron-browser
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ export class CallStackController extends BaseDebugController {
281
281
282
282
export class CallStackActionProvider implements renderer . IActionProvider {
283
283
284
- constructor ( @IInstantiationService private instantiationService : IInstantiationService ) {
284
+ constructor ( @IInstantiationService private instantiationService : IInstantiationService , @ debug . IDebugService private debugService : debug . IDebugService ) {
285
285
// noop
286
286
}
287
287
@@ -310,7 +310,10 @@ export class CallStackActionProvider implements renderer.IActionProvider {
310
310
actions . push ( this . instantiationService . createInstance ( debugactions . PauseAction , debugactions . PauseAction . ID , debugactions . PauseAction . LABEL ) ) ;
311
311
}
312
312
} else if ( element instanceof model . StackFrame ) {
313
- actions . push ( this . instantiationService . createInstance ( debugactions . RestartFrameAction , debugactions . RestartFrameAction . ID , debugactions . RestartFrameAction . LABEL ) ) ;
313
+ const caps = this . debugService . getActiveSession ( ) . configuration . capabilities ;
314
+ if ( typeof caps . supportsRestartFrame === 'boolean' && caps . supportsRestartFrame ) {
315
+ actions . push ( this . instantiationService . createInstance ( debugactions . RestartFrameAction , debugactions . RestartFrameAction . ID , debugactions . RestartFrameAction . LABEL ) ) ;
316
+ }
314
317
}
315
318
316
319
return TPromise . as ( actions ) ;
You can’t perform that action at this time.
0 commit comments