Skip to content

Commit d2c241f

Browse files
authored
Git - Disable git.init command, and a welcome view that uses the git.init command in codespaces (microsoft#160597)
Disable git.init command, and a welcome view that uses the git.init command in codespaces
1 parent c440b30 commit d2c241f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@
665665
},
666666
{
667667
"command": "git.init",
668-
"when": "config.git.enabled && !git.missing"
668+
"when": "config.git.enabled && !git.missing && remoteName != 'codespaces'"
669669
},
670670
{
671671
"command": "git.openRepository",
@@ -2738,7 +2738,7 @@
27382738
{
27392739
"view": "scm",
27402740
"contents": "%view.workbench.scm.workspace%",
2741-
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount != 0",
2741+
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount != 0 && remoteName != 'codespaces'",
27422742
"enablement": "git.state == initialized",
27432743
"group": "5_scm@1"
27442744
},

0 commit comments

Comments
 (0)