From 1266dc65251d29a374c1d23339de214bf2668e8f Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Sat, 25 Jun 2022 18:22:16 -0700 Subject: [PATCH] Remove Requirement for "Add to Watch" to be in debug mode There's no reason this shortcut should require debug mode to run, this would allow the user to pre-populate watch before starting a debug session. --- src/vs/workbench/contrib/debug/browser/debugEditorActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts index 9687e574a1a6c..391b4e51c071d 100644 --- a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts +++ b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts @@ -279,7 +279,7 @@ export class SelectionToWatchExpressionsAction extends EditorAction { id: SelectionToWatchExpressionsAction.ID, label: SelectionToWatchExpressionsAction.LABEL, alias: 'Debug: Add to Watch', - precondition: ContextKeyExpr.and(EditorContextKeys.hasNonEmptySelection, CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus), + precondition: ContextKeyExpr.and(EditorContextKeys.hasNonEmptySelection, EditorContextKeys.editorTextFocus), contextMenuOpts: { group: 'debug', order: 1