From 893c4b0ee626a578e4c7ffa7dd64cb6553fd29b8 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Mon, 6 Mar 2023 11:22:07 -0800 Subject: [PATCH] Don't show vscode.dev links on Codespaces --- extensions/github/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/github/package.json b/extensions/github/package.json index 01e18c0a34059..54885f4e026e6 100644 --- a/extensions/github/package.json +++ b/extensions/github/package.json @@ -89,40 +89,40 @@ "file/share": [ { "command": "github.copyVscodeDevLinkFile", - "when": "github.hasGitHubRepo", + "when": "github.hasGitHubRepo && remoteName != 'codespaces'", "group": "0_vscode@0" } ], "editor/context/share": [ { "command": "github.copyVscodeDevLink", - "when": "github.hasGitHubRepo && resourceScheme != untitled", + "when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'", "group": "0_vscode@0" } ], "explorer/context/share": [ { "command": "github.copyVscodeDevLinkWithoutRange", - "when": "github.hasGitHubRepo && resourceScheme != untitled", + "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", + "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 && notebookCellLineNumbers == on", + "when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editor.notebook && notebookCellLineNumbers == on && remoteName != 'codespaces'", "group": "1_cutcopypaste@2" } ], "editor/title/context/share": [ { "command": "github.copyVscodeDevLinkWithoutRange", - "when": "github.hasGitHubRepo && resourceScheme != untitled", + "when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'", "group": "0_vscode@0" } ]