mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
interrupt always visible for IW
This commit is contained in:
parent
adafd2633e
commit
8c5d8536ab
|
@ -573,6 +573,10 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|||
value: localize('notebookActions.interruptNotebook', "Interrupt"),
|
||||
original: 'Interrupt'
|
||||
},
|
||||
precondition: ContextKeyExpr.and(
|
||||
NOTEBOOK_HAS_SOMETHING_RUNNING,
|
||||
NOTEBOOK_INTERRUPTIBLE_KERNEL
|
||||
),
|
||||
icon: icons.stopIcon,
|
||||
menu: [
|
||||
{
|
||||
|
@ -598,11 +602,6 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|||
},
|
||||
{
|
||||
id: MenuId.InteractiveToolbar,
|
||||
when: ContextKeyExpr.and(
|
||||
NOTEBOOK_HAS_SOMETHING_RUNNING,
|
||||
NOTEBOOK_INTERRUPTIBLE_KERNEL,
|
||||
ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')
|
||||
),
|
||||
group: 'navigation/execute'
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue