SCM - plumbing to support artifacts in the repositories view (#274173)

* WIP - ported changes from the old branch

* More work getting the changes ready

* Tweak things

* Git - wire-up checkout command
This commit is contained in:
Ladislau Szomoru
2025-10-30 19:37:22 +00:00
committed by GitHub
parent 186f1b99d2
commit 9e8f5336da
21 changed files with 673 additions and 54 deletions

View File

@@ -16,6 +16,8 @@
"contribMergeEditorMenus",
"contribMultiDiffEditorMenus",
"contribDiffEditorGutterToolBarMenus",
"contribSourceControlArtifactGroupMenu",
"contribSourceControlArtifactMenu",
"contribSourceControlHistoryItemMenu",
"contribSourceControlHistoryTitleMenu",
"contribSourceControlInputBoxMenu",
@@ -26,6 +28,7 @@
"quickInputButtonLocation",
"quickPickSortByLabel",
"scmActionButton",
"scmArtifactProvider",
"scmHistoryProvider",
"scmMultiDiffEditor",
"scmProviderOptions",
@@ -1016,6 +1019,13 @@
"title": "%command.graphCompareWithMergeBase%",
"category": "Git",
"enablement": "!operationInProgress && scmCurrentHistoryItemRefHasBase"
},
{
"command": "git.repositories.checkout",
"title": "%command.graphCheckout%",
"icon": "$(target)",
"category": "Git",
"enablement": "!operationInProgress"
}
],
"continueEditSession": [
@@ -1639,6 +1649,10 @@
{
"command": "git.diff.stageSelection",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
},
{
"command": "git.repositories.checkout",
"when": "false"
}
],
"scm/title": [
@@ -1829,6 +1843,13 @@
"when": "scmProvider == git && scmProviderContext == worktree"
}
],
"scm/artifact/context": [
{
"command": "git.repositories.checkout",
"group": "inline@1",
"when": "scmProvider == git"
}
],
"scm/resourceGroup/context": [
{
"command": "git.stageAllMerge",