File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/parts/debug/electron-browser Expand file tree Collapse file tree 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 {
281281
282282export class CallStackActionProvider implements renderer . IActionProvider {
283283
284- constructor ( @IInstantiationService private instantiationService : IInstantiationService ) {
284+ constructor ( @IInstantiationService private instantiationService : IInstantiationService , @ debug . IDebugService private debugService : debug . IDebugService ) {
285285 // noop
286286 }
287287
@@ -310,7 +310,10 @@ export class CallStackActionProvider implements renderer.IActionProvider {
310310 actions . push ( this . instantiationService . createInstance ( debugactions . PauseAction , debugactions . PauseAction . ID , debugactions . PauseAction . LABEL ) ) ;
311311 }
312312 } 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+ }
314317 }
315318
316319 return TPromise . as ( actions ) ;
You can’t perform that action at this time.
0 commit comments