Skip to content

Commit 40474d7

Browse files
authored
Revert "Git - Close Repository command should be disabled when there is only one repository opened (microsoft#184637)" (microsoft#184685)
This reverts commit 2cccaae.
1 parent c000cb1 commit 40474d7

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 && gitOpenRepositoryCount > 1"
91+
"enablement": "!operationInProgress"
9292
},
9393
{
9494
"command": "git.refresh",
@@ -773,7 +773,7 @@
773773
},
774774
{
775775
"command": "git.close",
776-
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount > 1"
776+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
777777
},
778778
{
779779
"command": "git.refresh",

0 commit comments

Comments
 (0)