vscode 扩展中上下文菜单项的子菜单
submenu on context menuitem in vscode extensions
我看到很多 github 问题似乎表明添加了当我们单击自定义上下文菜单项时下拉子菜单的功能,例如 explorer/context,已添加2020 年 9 月,但我在扩展文档中找不到它。
有人可以指出我吗?
谢谢,
尼勒什
语法:
{
"contributes": {
"menus": {
"scm/title": [
{
"command": "git.commit",
"group": "navigation"
},
{
"submenu": "git.stage",
"group": "navigation"
}
],
"git.stage": [
{
"command": "git.stageAll",
"group": "navigation"
},
{
"command": "git.stageUntracked",
"group": "navigation"
}
]
},
"submenus": [
{
"id": "git.stage",
"label": "Stage",
"icon": "$(something)"
}
]
}
}
参见:https://github.com/microsoft/vscode/issues/100172#issuecomment-645203070
我看到很多 github 问题似乎表明添加了当我们单击自定义上下文菜单项时下拉子菜单的功能,例如 explorer/context,已添加2020 年 9 月,但我在扩展文档中找不到它。 有人可以指出我吗? 谢谢, 尼勒什
语法:
{
"contributes": {
"menus": {
"scm/title": [
{
"command": "git.commit",
"group": "navigation"
},
{
"submenu": "git.stage",
"group": "navigation"
}
],
"git.stage": [
{
"command": "git.stageAll",
"group": "navigation"
},
{
"command": "git.stageUntracked",
"group": "navigation"
}
]
},
"submenus": [
{
"id": "git.stage",
"label": "Stage",
"icon": "$(something)"
}
]
}
}
参见:https://github.com/microsoft/vscode/issues/100172#issuecomment-645203070