SCM - graph always scoped to one repository (#227302)

* Initial implementation of the view

* Extract things into SCMHistoryViewModel

* Add repository name in the title description

* Set the scmProvider context key
This commit is contained in:
Ladislau Szomoru
2024-09-01 16:50:16 +02:00
committed by GitHub
parent 0978e9ebf5
commit a546f7613c
3 changed files with 208 additions and 372 deletions

View File

@@ -527,6 +527,7 @@
{
"command": "git.fetchAll",
"title": "%command.fetchAll%",
"icon": "$(git-fetch)",
"category": "Git",
"enablement": "!operationInProgress"
},
@@ -1936,24 +1937,9 @@
],
"scm/history/title": [
{
"command": "git.fetchRef",
"command": "git.fetchAll",
"group": "navigation@1",
"when": "scmProvider == git && scmHistoryItemGroupHasRemote"
},
{
"command": "git.pullRef",
"group": "navigation@2",
"when": "scmProvider == git && scmHistoryItemGroupHasRemote"
},
{
"command": "git.pushRef",
"when": "scmProvider == git && scmHistoryItemGroupHasRemote",
"group": "navigation@3"
},
{
"command": "git.publish",
"when": "scmProvider == git && !scmHistoryItemGroupHasRemote",
"group": "navigation@3"
"when": "scmProvider == git"
}
],
"scm/historyItem/context": [