From 8969e52fa07cc8cfae0d7ff2c83ab1e69aee906d Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Fri, 15 Dec 2023 13:58:54 -0800 Subject: [PATCH] debug: fix `Edit Condition...` on context menu of function breakpoint requires a second action (#201022) Fixes #195696 --- src/vs/workbench/contrib/debug/browser/breakpointsView.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/debug/browser/breakpointsView.ts b/src/vs/workbench/contrib/debug/browser/breakpointsView.ts index 9fefd450ab7..7e7379706dc 100644 --- a/src/vs/workbench/contrib/debug/browser/breakpointsView.ts +++ b/src/vs/workbench/contrib/debug/browser/breakpointsView.ts @@ -1542,6 +1542,7 @@ registerAction2(class extends ViewAction { precondition: CONTEXT_BREAKPOINT_SUPPORTS_CONDITION, menu: [{ id: MenuId.DebugBreakpointsContext, + when: CONTEXT_BREAKPOINT_ITEM_TYPE.notEqualsTo('functionBreakpoint'), group: 'navigation', order: 10 }, { @@ -1588,10 +1589,10 @@ registerAction2(class extends ViewAction { super({ id: 'debug.editFunctionBreakpoint', viewId: BREAKPOINTS_VIEW_ID, - title: localize('editBreakpoint', "Edit Function Breakpoint..."), + title: localize('editBreakpoint', "Edit Function Condition..."), menu: [{ id: MenuId.DebugBreakpointsContext, - group: '1_breakpoints', + group: 'navigation', order: 10, when: CONTEXT_BREAKPOINT_ITEM_TYPE.isEqualTo('functionBreakpoint') }]