Add a Share menu and a share vscode.dev command (#152765)

* Add a share menu
Fixes #146309

* Add vscod.dev command in github extension

* Make share menu proposed

* Add share submenu into editor context

* Add proposed to editor share menu
This commit is contained in:
Alex Ross
2022-06-27 09:56:36 +02:00
committed by GitHub
parent e71b6105eb
commit ffe53e8d71
13 changed files with 190 additions and 17 deletions

View File

@@ -25,11 +25,18 @@
"supported": true
}
},
"enabledApiProposals": [
"contribShareMenu"
],
"contributes": {
"commands": [
{
"command": "github.publish",
"title": "Publish to GitHub"
},
{
"command": "github.copyVscodeDevLink",
"title": "Copy vscode.dev Link"
}
],
"menus": {
@@ -37,6 +44,22 @@
{
"command": "github.publish",
"when": "git-base.gitEnabled"
},
{
"command": "github.copyVscodeDevLink",
"when": "false"
}
],
"file/share": [
{
"command": "github.copyVscodeDevLink",
"when": "github.hasGitHubRepo"
}
],
"editor/context/share": [
{
"command": "github.copyVscodeDevLink",
"when": "github.hasGitHubRepo"
}
]
},