Skip to content

Commit

Permalink
submenus
Browse files Browse the repository at this point in the history
  • Loading branch information
juozasg committed Sep 12, 2023
1 parent 929ee61 commit 9706ff1
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
{
"command": "gitops.views.createGitRepository",
"title": "Create GitRepository from Path",
"title": "Create Source from Path",
"category": "GitOps"
},
{
Expand Down Expand Up @@ -322,6 +322,12 @@
"when": "gitops:currentClusterGitOpsNotEnabled && !gitops:clusterUnreachable"
}
],
"submenus": [
{
"id": "gitops.explorer",
"label": "GitOps"
}
],
"menus": {
"view/title": [
{
Expand Down Expand Up @@ -471,17 +477,24 @@
"when": "view == gitops.views.templates"
}
],
"explorer/context": [
"gitops.explorer": [
{
"command": "gitops.views.createGitRepository"
},
{
"command": "gitops.flux.reconcileRepository"
"command": "gitops.flux.reconcileRepository",
"when": "explorerResourceIsFolder"
},
{
"command": "gitops.createKustomization"
}
],
"explorer/context": [
{
"submenu": "gitops.explorer"
}
],

"commandPalette": [
{
"command": "gitops.editor.openResource",
Expand Down

0 comments on commit 9706ff1

Please sign in to comment.