mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-27 05:05:10 +00:00
Git - Close Repository command should be disabled when there is only one repository opened (#184637)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user