Git - handle unsafe repositories (#167248)

This commit is contained in:
Ladislau Szomoru
2022-11-25 14:40:23 +01:00
committed by GitHub
parent 227e4ca947
commit 3a52e79cea
6 changed files with 211 additions and 12 deletions

View File

@@ -118,12 +118,12 @@
{
"view": "scm",
"contents": "%welcome.publishFolder%",
"when": "config.git.enabled && git.state == initialized && workbenchState == folder"
"when": "config.git.enabled && git.state == initialized && workbenchState == folder && git.unsafeRepositoryCount == 0"
},
{
"view": "scm",
"contents": "%welcome.publishWorkspaceFolder%",
"when": "config.git.enabled && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0"
"when": "config.git.enabled && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0 && git.unsafeRepositoryCount == 0"
}
],
"markdown.previewStyles": [