diff options
Diffstat (limited to 'src/vs/workbench/contrib/debug/browser/debugEditorActions.ts')
-rw-r--r-- | src/vs/workbench/contrib/debug/browser/debugEditorActions.ts | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts index bcb3748c6a1..4264520e56a 100644 --- a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts +++ b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts @@ -234,13 +234,16 @@ export class RunToCursorAction extends EditorAction { } } -class SelectionToReplAction extends EditorAction { +export class SelectionToReplAction extends EditorAction { + + public static readonly ID = 'editor.debug.action.selectionToRepl'; + public static readonly LABEL = nls.localize('evaluateInDebugConsole', "Evaluate in Debug Console"); constructor() { super({ - id: 'editor.debug.action.selectionToRepl', - label: nls.localize('evaluateInDebugConsole', "Evaluate in Debug Console"), - alias: 'Evaluate', + id: SelectionToReplAction.ID, + label: SelectionToReplAction.LABEL, + alias: 'Debug: Evaluate in Console', precondition: ContextKeyExpr.and(EditorContextKeys.hasNonEmptySelection, CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus), contextMenuOpts: { group: 'debug', @@ -264,13 +267,16 @@ class SelectionToReplAction extends EditorAction { } } -class SelectionToWatchExpressionsAction extends EditorAction { +export class SelectionToWatchExpressionsAction extends EditorAction { + + public static readonly ID = 'editor.debug.action.selectionToWatch'; + public static readonly LABEL = nls.localize('addToWatch', "Add to Watch"); constructor() { super({ - id: 'editor.debug.action.selectionToWatch', - label: nls.localize('addToWatch', "Add to Watch"), - alias: 'Add to Watch', + id: SelectionToWatchExpressionsAction.ID, + label: SelectionToWatchExpressionsAction.LABEL, + alias: 'Debug: Add to Watch', precondition: ContextKeyExpr.and(EditorContextKeys.hasNonEmptySelection, CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus), contextMenuOpts: { group: 'debug', |