Fix "Run to cursor" not doing anything when run from command palette when debug is not active (#186571)

Fix #186080
This commit is contained in:
Rob Lourens 2023-06-28 15:59:12 -07:00 committed by GitHub
parent 2e8ab06755
commit c3fefb9c20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,10 +251,11 @@ export class RunToCursorAction extends EditorAction {
id: RunToCursorAction.ID,
label: RunToCursorAction.LABEL,
alias: 'Debug: Run to Cursor',
precondition: ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, PanelFocusContext.toNegated(), CONTEXT_DEBUG_STATE.isEqualTo('stopped'), EditorContextKeys.editorTextFocus),
precondition: ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, PanelFocusContext.toNegated(), EditorContextKeys.editorTextFocus),
contextMenuOpts: {
group: 'debug',
order: 2
order: 2,
when: CONTEXT_IN_DEBUG_MODE
}
});
}