bring notebook actions back to editor title bar menu static.

This commit is contained in:
rebornix 2021-03-24 18:11:38 -07:00
parent ceff50539f
commit ce9298464e
No known key found for this signature in database
GPG key ID: 181FC90D15393C20

View file

@ -626,7 +626,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
when: NOTEBOOK_EDITOR_FOCUSED
});
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
command: {
id: EXECUTE_NOTEBOOK_COMMAND_ID,
title: localize('notebookActions.menu.executeNotebook', "Execute Notebook (Run all cells)"),
@ -637,7 +637,7 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
when: ContextKeyExpr.and(executeNotebookCondition, ContextKeyExpr.or(NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated(), NOTEBOOK_HAS_RUNNING_CELL.toNegated()))
});
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
command: {
id: CANCEL_NOTEBOOK_COMMAND_ID,
title: localize('notebookActions.menu.cancelNotebook', "Stop Notebook Execution"),
@ -1520,7 +1520,7 @@ registerAction2(class extends NotebookAction {
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
title: localize('clearAllCellsOutputs', 'Clear All Cells Outputs'),
menu: {
id: MenuId.NotebookToolbar,
id: MenuId.EditorTitle,
// when: NOTEBOOK_IS_ACTIVE_EDITOR,
group: 'navigation',
order: 0