Skip to content

Commit

Permalink
fix #119852.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Mar 25, 2021
1 parent da992a1 commit 6ebe2a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
},
order: -1,
group: 'navigation',
when: ContextKeyExpr.and(executeNotebookCondition, ContextKeyExpr.or(NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated(), NOTEBOOK_HAS_RUNNING_CELL.toNegated()))
when: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, executeNotebookCondition, ContextKeyExpr.or(NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated(), NOTEBOOK_HAS_RUNNING_CELL.toNegated()))
});

MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
Expand All @@ -645,7 +645,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
},
order: -1,
group: 'navigation',
when: ContextKeyExpr.and(NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_INTERRUPTIBLE_KERNEL)
when: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_INTERRUPTIBLE_KERNEL)
});

registerAction2(class extends NotebookCellAction {
Expand Down Expand Up @@ -1521,7 +1521,7 @@ registerAction2(class extends NotebookAction {
title: localize('clearAllCellsOutputs', 'Clear All Cells Outputs'),
menu: {
id: MenuId.EditorTitle,
// when: NOTEBOOK_IS_ACTIVE_EDITOR,
when: NOTEBOOK_IS_ACTIVE_EDITOR,
group: 'navigation',
order: 0
},
Expand Down

0 comments on commit 6ebe2a1

Please sign in to comment.