Skip to content

Commit 2cccaae

Browse files
authored
Git - Close Repository command should be disabled when there is only one repository opened (microsoft#184637)
1 parent 34bde27 commit 2cccaae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"command": "git.close",
8989
"title": "%command.close%",
9090
"category": "Git",
91-
"enablement": "!operationInProgress"
91+
"enablement": "!operationInProgress && gitOpenRepositoryCount > 1"
9292
},
9393
{
9494
"command": "git.refresh",
@@ -773,7 +773,7 @@
773773
},
774774
{
775775
"command": "git.close",
776-
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
776+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount > 1"
777777
},
778778
{
779779
"command": "git.refresh",

0 commit comments

Comments
 (0)