mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Introduce share links in more places via a contrib (#177311)
* Introduce share links in more places via a contrib * Update `build/lib/i18n.resources.json`
This commit is contained in:
@@ -38,16 +38,13 @@
|
||||
},
|
||||
{
|
||||
"command": "github.copyVscodeDevLink",
|
||||
"enablement": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'",
|
||||
"title": "Copy vscode.dev Link"
|
||||
},
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkFile",
|
||||
"title": "Copy vscode.dev Link"
|
||||
},
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkWithoutRange",
|
||||
"title": "Copy vscode.dev Link"
|
||||
},
|
||||
{
|
||||
"command": "github.openOnVscodeDev",
|
||||
"title": "Open in vscode.dev",
|
||||
@@ -77,56 +74,24 @@
|
||||
"command": "github.copyVscodeDevLinkFile",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkWithoutRange",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "github.openOnVscodeDev",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"share": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLink",
|
||||
"title": "Copy vscode.dev Link"
|
||||
}
|
||||
],
|
||||
"file/share": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkFile",
|
||||
"when": "github.hasGitHubRepo && remoteName != 'codespaces'",
|
||||
"group": "0_vscode@0"
|
||||
}
|
||||
],
|
||||
"editor/context/share": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLink",
|
||||
"when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'",
|
||||
"group": "0_vscode@0"
|
||||
}
|
||||
],
|
||||
"explorer/context/share": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkWithoutRange",
|
||||
"when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'",
|
||||
"group": "0_vscode@0"
|
||||
}
|
||||
],
|
||||
"editor/lineNumber/context": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLink",
|
||||
"when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on && remoteName != 'codespaces'",
|
||||
"group": "1_cutcopypaste@2"
|
||||
},
|
||||
{
|
||||
"command": "github.copyVscodeDevLink",
|
||||
"when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editor.notebook && remoteName != 'codespaces'",
|
||||
"group": "1_cutcopypaste@2"
|
||||
}
|
||||
],
|
||||
"editor/title/context/share": [
|
||||
{
|
||||
"command": "github.copyVscodeDevLinkWithoutRange",
|
||||
"when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'",
|
||||
"group": "0_vscode@0"
|
||||
}
|
||||
]
|
||||
|
||||
},
|
||||
"configuration": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user