I am creating a Visual studio code extension, and I would like to place a command into a submenu like this
here, the "Peek" submenu contains commands like "Peek Call Hierarchy".
Currently in my Package.json, I have
{
"contributes": {
"commands": [{
"command":"myExtension.dothing",
"title":"make the extension do a thing",
"category":"myextensioncategory"
}],
"menus": [{
"explorer/context": [{
"command": "myExtension.dothing",
"group": "myextension.myGroup",
"when": "!explorerResourceIsFolder"
},
{
"submenu": "myextensionsubmenu",
"group": "myextension.myGroup"
}
]
}],
"submenus": [{
"label": "my extension",
"id": "myextensionsubmenu"
}]
}
}
(not relevant parts removed)
And it shows up with something like this
I would like to place the "make the extension do a thing" command into the "my extension" submenu, but I don't understand how I would do that from the docs Can anyone explain or point me to a resource/tutorial? Thanks!
