SCM - Add "Reopen Closed Repositories..." action to the "Source control Repositories" view title bar (#203512)

This commit is contained in:
Ladislau Szomoru
2024-01-26 10:50:25 +01:00
committed by GitHub
parent 6c21641885
commit b26b05031e
7 changed files with 27 additions and 4 deletions

View File

@@ -18,6 +18,7 @@
"contribSourceControlHistoryItemGroupMenu",
"contribSourceControlHistoryItemMenu",
"contribSourceControlInputBoxMenu",
"contribSourceControlTitleMenu",
"contribViewsWelcome",
"diffCommand",
"editSessionIdentityProvider",
@@ -94,6 +95,7 @@
{
"command": "git.reopenClosedRepositories",
"title": "%command.reopenClosedRepositories%",
"icon": "$(repo)",
"category": "Git",
"enablement": "!operationInProgress && git.closedRepositoryCount != 0"
},
@@ -1448,6 +1450,13 @@
"when": "scmProvider == git"
}
],
"scm/sourceControl/title": [
{
"command": "git.reopenClosedRepositories",
"group": "navigation@1",
"when": "scmProvider == git && git.closedRepositoryCount > 0"
}
],
"scm/sourceControl": [
{
"command": "git.close",