Git - Close Repository command should be disabled when there is only one repository opened (#184637)

This commit is contained in:
Ladislau Szomoru
2023-06-09 00:19:10 +02:00
committed by GitHub
parent 34bde274c1
commit 2cccaaee8a

View File

@@ -88,7 +88,7 @@
"command": "git.close",
"title": "%command.close%",
"category": "Git",
"enablement": "!operationInProgress"
"enablement": "!operationInProgress && gitOpenRepositoryCount > 1"
},
{
"command": "git.refresh",
@@ -773,7 +773,7 @@
},
{
"command": "git.close",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount > 1"
},
{
"command": "git.refresh",