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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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",