Skip to content

Commit df51f5a

Browse files
authored
GitHub - Disable command & view in codespaces (microsoft#160546)
Disable command & view in codespaces
1 parent 9c9eb26 commit df51f5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/git/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,7 @@
27312731
{
27322732
"view": "scm",
27332733
"contents": "%view.workbench.scm.folder%",
2734-
"when": "config.git.enabled && !git.missing && workbenchState == folder",
2734+
"when": "config.git.enabled && !git.missing && workbenchState == folder && remoteName != 'codespaces'",
27352735
"enablement": "git.state == initialized",
27362736
"group": "5_scm@1"
27372737
},

extensions/github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"commandPalette": [
6060
{
6161
"command": "github.publish",
62-
"when": "git-base.gitEnabled"
62+
"when": "git-base.gitEnabled && remoteName != 'codespaces'"
6363
},
6464
{
6565
"command": "github.copyVscodeDevLink",

0 commit comments

Comments
 (0)