mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
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:
parent
2e8ab06755
commit
c3fefb9c20
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue