mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
Git - Close Repository command should be disabled when there is only one repository opened (#184637)
This commit is contained in:
parent
34bde274c1
commit
2cccaaee8a
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user