Share link from File Menu shouldn't include active file (#153911)

Fixes #153537
This commit is contained in:
Alex Ross
2022-07-01 15:04:12 +02:00
committed by GitHub
parent efbf613639
commit 48fef0c1da
3 changed files with 30 additions and 16 deletions

View File

@@ -37,6 +37,10 @@
{
"command": "github.copyVscodeDevLink",
"title": "Copy vscode.dev Link"
},
{
"command": "github.copyVscodeDevLinkFile",
"title": "Copy vscode.dev Link"
}
],
"menus": {
@@ -48,11 +52,15 @@
{
"command": "github.copyVscodeDevLink",
"when": "false"
},
{
"command": "github.copyVscodeDevLinkFile",
"when": "false"
}
],
"file/share": [
{
"command": "github.copyVscodeDevLink",
"command": "github.copyVscodeDevLinkFile",
"when": "github.hasGitHubRepo"
}
],