Skip to content

Commit 9f25e63

Browse files
authored
Re-order Cut/Copy/Paste in the Cell context menu (#207963)
1 parent b216b43 commit 9f25e63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ registerAction2(class extends NotebookCellAction {
438438
id: MenuId.NotebookCellTitle,
439439
when: NOTEBOOK_EDITOR_FOCUSED,
440440
group: CellOverflowToolbarGroups.Copy,
441+
order: 2,
441442
},
442443
keybinding: platform.isNative ? undefined : {
443444
primary: KeyMod.CtrlCmd | KeyCode.KeyC,
@@ -463,6 +464,7 @@ registerAction2(class extends NotebookCellAction {
463464
id: MenuId.NotebookCellTitle,
464465
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE),
465466
group: CellOverflowToolbarGroups.Copy,
467+
order: 1,
466468
},
467469
keybinding: platform.isNative ? undefined : {
468470
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
@@ -488,6 +490,7 @@ registerAction2(class extends NotebookAction {
488490
id: MenuId.NotebookCellTitle,
489491
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE),
490492
group: CellOverflowToolbarGroups.Copy,
493+
order: 3,
491494
},
492495
keybinding: platform.isNative ? undefined : {
493496
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),

0 commit comments

Comments
 (0)