This commit is contained in:
Henning Dieterichs
2024-03-15 16:52:52 +01:00
committed by Henning Dieterichs
parent 15715aedf0
commit b7d35c8bdd
26 changed files with 800 additions and 52 deletions

View File

@@ -15,6 +15,7 @@
"contribEditorContentMenu",
"contribMergeEditorMenus",
"contribMultiDiffEditorMenus",
"contribDiffEditorGutterToolBarMenus",
"contribSourceControlHistoryItemGroupMenu",
"contribSourceControlHistoryItemMenu",
"contribSourceControlInputBoxMenu",
@@ -188,6 +189,18 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.diff.stageHunk",
"title": "%command.stageBlock%",
"category": "Git",
"icon": "$(plus)"
},
{
"command": "git.diff.stageSelection",
"title": "%command.stageSelection%",
"category": "Git",
"icon": "$(plus)"
},
{
"command": "git.revertSelectedRanges",
"title": "%command.revertSelectedRanges%",
@@ -2047,6 +2060,20 @@
"when": "scmProvider == git && scmResourceGroup == index"
}
],
"diffEditor/gutter/hunk": [
{
"command": "git.diff.stageHunk",
"group": "primary@10",
"when": "diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
}
],
"diffEditor/gutter/selection": [
{
"command": "git.diff.stageSelection",
"group": "primary@10",
"when": "diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
}
],
"scm/change/title": [
{
"command": "git.stageChange",