Skip to content

Commit c3fefb9

Browse files
authored
Fix "Run to cursor" not doing anything when run from command palette when debug is not active (microsoft#186571)
Fix microsoft#186080
1 parent 2e8ab06 commit c3fefb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/debug/browser/debugEditorActions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,11 @@ export class RunToCursorAction extends EditorAction {
251251
id: RunToCursorAction.ID,
252252
label: RunToCursorAction.LABEL,
253253
alias: 'Debug: Run to Cursor',
254-
precondition: ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, PanelFocusContext.toNegated(), CONTEXT_DEBUG_STATE.isEqualTo('stopped'), EditorContextKeys.editorTextFocus),
254+
precondition: ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, PanelFocusContext.toNegated(), EditorContextKeys.editorTextFocus),
255255
contextMenuOpts: {
256256
group: 'debug',
257-
order: 2
257+
order: 2,
258+
when: CONTEXT_IN_DEBUG_MODE
258259
}
259260
});
260261
}

0 commit comments

Comments
 (0)