Skip to content

Commit fdcc959

Browse files
authored
Git - update Explorer welcome view context key (microsoft#191788)
1 parent 0e3926c commit fdcc959

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/git/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2950,13 +2950,13 @@
29502950
{
29512951
"view": "scm",
29522952
"contents": "%view.workbench.scm.folder%",
2953-
"when": "config.git.enabled && !git.missing && git.state == initialized && workbenchState == folder && scmRepositoryCount == 0 && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0 && remoteName != 'codespaces'",
2953+
"when": "config.git.enabled && !git.missing && git.state == initialized && workbenchState == folder && scm.providerCount == 0 && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0 && remoteName != 'codespaces'",
29542954
"group": "5_scm@1"
29552955
},
29562956
{
29572957
"view": "scm",
29582958
"contents": "%view.workbench.scm.workspace%",
2959-
"when": "config.git.enabled && !git.missing && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0 && scmRepositoryCount == 0 && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0 && remoteName != 'codespaces'",
2959+
"when": "config.git.enabled && !git.missing && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0 && scm.providerCount == 0 && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0 && remoteName != 'codespaces'",
29602960
"group": "5_scm@1"
29612961
},
29622962
{
@@ -2992,13 +2992,13 @@
29922992
{
29932993
"view": "explorer",
29942994
"contents": "%view.workbench.cloneRepository%",
2995-
"when": "config.git.enabled && git.state == initialized && scmRepositoryCount == 0",
2995+
"when": "config.git.enabled && git.state == initialized && scm.providerCount == 0",
29962996
"group": "5_scm@1"
29972997
},
29982998
{
29992999
"view": "explorer",
30003000
"contents": "%view.workbench.learnMore%",
3001-
"when": "config.git.enabled && git.state == initialized && scmRepositoryCount == 0",
3001+
"when": "config.git.enabled && git.state == initialized && scm.providerCount == 0",
30023002
"group": "5_scm@10"
30033003
}
30043004
]

0 commit comments

Comments
 (0)