Skip to content

Commit

Permalink
FUSETOOLS2-2456 - use submenus for new Camel file contextual menu
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Aug 30, 2024
1 parent eddfd58 commit 443d623
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,50 @@
],
"explorer/context": [
{
"command": "camel.new.file",
"submenu": "camel.new.file",
"group": "1_camel",
"when": "workspaceFolderCount != 0"
}
],
"camel.new.file": [
{
"command": "camel.jbang.routes.yaml",
"group": "1_camel@1",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.java",
"group": "1_camel@2",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.xml",
"group": "1_camel@3",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.kamelet.yaml",
"group": "1_camel@3",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.pipe.yaml",
"group": "1_camel@4",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.yaml.fromopenapi",
"group": "1_camel@5",
"when": "workspaceFolderCount != 0"
}
]
}
},
"submenus": [
{
"id": "camel.new.file",
"label": "New Camel File"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
Expand Down

0 comments on commit 443d623

Please sign in to comment.