Git - Disable git.init command, and a welcome view that uses the git.init command in codespaces (#160597)

Disable git.init command, and a welcome view that uses the git.init command in codespaces
This commit is contained in:
Ladislau Szomoru
2022-09-10 10:38:41 +02:00
committed by GitHub
parent c440b30407
commit d2c241ffc0

View File

@@ -665,7 +665,7 @@
},
{
"command": "git.init",
"when": "config.git.enabled && !git.missing"
"when": "config.git.enabled && !git.missing && remoteName != 'codespaces'"
},
{
"command": "git.openRepository",
@@ -2738,7 +2738,7 @@
{
"view": "scm",
"contents": "%view.workbench.scm.workspace%",
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount != 0",
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount != 0 && remoteName != 'codespaces'",
"enablement": "git.state == initialized",
"group": "5_scm@1"
},