mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user