Skip to content

Commit 2e812e5

Browse files
committed
Reorganize menu command groupings and context menu item definitions
1 parent 4fa658a commit 2e812e5

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,13 @@
394394
"command": "codeWebChat.codeAtCursorWithInstructionsUsing",
395395
"group": "1_action@4"
396396
},
397-
{
398-
"command": "codeWebChat.checkDefinitionFileForContext",
399-
"group": "1_action@6"
400-
},
401397
{
402398
"command": "codeWebChat.checkReferencingFilesForContext",
403399
"group": "1_action@5"
400+
},
401+
{
402+
"command": "codeWebChat.checkDefinitionFileForContext",
403+
"group": "1_action@6"
404404
}
405405
],
406406
"commandPalette": [
@@ -576,6 +576,11 @@
576576
"when": "view == codeWebChatViewWorkspace",
577577
"group": "navigation@2"
578578
},
579+
{
580+
"command": "codeWebChat.copyContext",
581+
"when": "view == codeWebChatViewWorkspace",
582+
"group": "navigation@3"
583+
},
579584
{
580585
"command": "codeWebChat.searchFilesForContext",
581586
"when": "view == codeWebChatViewWorkspace",
@@ -601,11 +606,6 @@
601606
"when": "view == codeWebChatViewWorkspace",
602607
"group": "navigation@8"
603608
},
604-
{
605-
"command": "codeWebChat.copyContext",
606-
"when": "view == codeWebChatViewWorkspace",
607-
"group": "navigation@3"
608-
},
609609
{
610610
"command": "codeWebChat.collapseWorkspaceFolders",
611611
"when": "view == codeWebChatViewWorkspace",
@@ -637,14 +637,14 @@
637637
"group": "navigation@5"
638638
},
639639
{
640-
"command": "codeWebChat.openRepository",
640+
"command": "codeWebChat.documentation",
641641
"when": "view == codeWebChatView",
642-
"group": "navigation@2"
642+
"group": "navigation@1"
643643
},
644644
{
645-
"command": "codeWebChat.documentation",
645+
"command": "codeWebChat.openRepository",
646646
"when": "view == codeWebChatView",
647-
"group": "navigation@1"
647+
"group": "navigation@2"
648648
}
649649
],
650650
"scm/title": [
@@ -682,35 +682,25 @@
682682
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
683683
"group": "1_modification@2"
684684
},
685-
{
686-
"command": "codeWebChat.selectImportedFiles",
687-
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
688-
"group": "2_modification@2"
689-
},
690685
{
691686
"command": "codeWebChat.referenceInPrompt",
692687
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
693688
"group": "2_modification@1"
694689
},
695690
{
696-
"command": "codeWebChat.revealInExplorer",
691+
"command": "codeWebChat.selectImportedFiles",
697692
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
698-
"group": "2_modification@3"
693+
"group": "2_modification@2"
699694
},
700695
{
701696
"command": "codeWebChat.setRanges",
702697
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
703-
"group": "2_modification@4"
704-
},
705-
{
706-
"command": "codeWebChat.openInIntegratedTerminal",
707-
"when": "view == codeWebChatViewWorkspace && (viewItem == workspaceRoot || viewItem == directory)",
708-
"group": "1_modification@10"
698+
"group": "2_modification@3"
709699
},
710700
{
711-
"command": "codeWebChat.removeFolderFromWorkspace",
712-
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == workspaceRoot || viewItem == contextWorkspaceRoot) && workspaceFolderCount > 1",
713-
"group": "1_modification@11"
701+
"command": "codeWebChat.revealInExplorer",
702+
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
703+
"group": "2_modification@4"
714704
},
715705
{
716706
"command": "codeWebChat.newFile",
@@ -732,16 +722,16 @@
732722
"when": "view == codeWebChatViewWorkspace",
733723
"group": "1_creation@4"
734724
},
735-
{
736-
"command": "codeWebChat.selectImportedFiles",
737-
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == file || viewItem == contextFile || viewItem == directory)",
738-
"group": "1_modification@4"
739-
},
740725
{
741726
"command": "codeWebChat.referenceInPrompt",
742727
"when": "view == codeWebChatViewWorkspace || view == codeWebChatViewContext",
743728
"group": "1_modification@3"
744729
},
730+
{
731+
"command": "codeWebChat.selectImportedFiles",
732+
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == file || viewItem == contextFile || viewItem == directory)",
733+
"group": "1_modification@4"
734+
},
745735
{
746736
"command": "codeWebChat.searchFilesForContextFromDirectory",
747737
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == directory || viewItem == workspaceRoot || viewItem == contextDirectory || viewItem == contextWorkspaceRoot)",
@@ -752,20 +742,30 @@
752742
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == directory || viewItem == workspaceRoot || viewItem == contextDirectory || viewItem == contextWorkspaceRoot)",
753743
"group": "1_modification@6"
754744
},
745+
{
746+
"command": "codeWebChat.setRanges",
747+
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && viewItem == file",
748+
"group": "1_modification@7"
749+
},
750+
{
751+
"command": "codeWebChat.removeFolderFromWorkspace",
752+
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == workspaceRoot || viewItem == contextWorkspaceRoot) && workspaceFolderCount > 1",
753+
"group": "1_modification@8"
754+
},
755755
{
756756
"command": "codeWebChat.findInFolder",
757757
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == directory || viewItem == workspaceRoot || viewItem == contextDirectory || viewItem == contextWorkspaceRoot)",
758-
"group": "1_modification@7"
758+
"group": "2_external@1"
759759
},
760760
{
761761
"command": "codeWebChat.revealInExplorer",
762762
"when": "view == codeWebChatViewWorkspace || view == codeWebChatViewContext",
763-
"group": "1_modification@8"
763+
"group": "2_external@2"
764764
},
765765
{
766-
"command": "codeWebChat.setRanges",
767-
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && viewItem == file",
768-
"group": "1_modification@9"
766+
"command": "codeWebChat.openInIntegratedTerminal",
767+
"when": "(view == codeWebChatViewWorkspace || view == codeWebChatViewContext) && (viewItem == workspaceRoot || viewItem == directory || viewItem == contextWorkspaceRoot || viewItem == contextDirectory)",
768+
"group": "2_external@3"
769769
}
770770
]
771771
},

0 commit comments

Comments
 (0)