From dc23a72623387befa189ae9f3027893c274720c0 Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 24 Feb 2016 12:59:44 +0100 Subject: [PATCH] fixes #3404 --- src/vs/workbench/parts/debug/electron-browser/debugActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/debug/electron-browser/debugActions.ts b/src/vs/workbench/parts/debug/electron-browser/debugActions.ts index 4c274ff67d45e..cd8a6294a498b 100644 --- a/src/vs/workbench/parts/debug/electron-browser/debugActions.ts +++ b/src/vs/workbench/parts/debug/electron-browser/debugActions.ts @@ -376,7 +376,7 @@ export class ReapplyBreakpointsAction extends AbstractDebugAction { } protected isEnabled(): boolean { - return super.isEnabled() && !!this.debugService.getActiveSession() && this.debugService.getModel().getBreakpoints().length > 0; + return super.isEnabled() && this.debugService.getState() !== debug.State.Disabled && this.debugService.getState() !== debug.State.Inactive; } }