Git - move "Open Commit" command from core to the git extension (#202042)

* Initial implementation

* Move the command to the git extension

* Add missing enablement property
This commit is contained in:
Ladislau Szomoru
2024-01-08 21:39:07 +01:00
committed by GitHub
parent 88a6ed6d9b
commit 891a17ab57
12 changed files with 137 additions and 75 deletions

View File

@@ -24,7 +24,8 @@
"tabInputTextMerge",
"timeline",
"contribMergeEditorMenus",
"contribSourceControlInputBoxMenu"
"contribSourceControlInputBoxMenu",
"contribSourceControlHistoryItemMenu"
],
"categories": [
"Other"
@@ -708,7 +709,7 @@
},
{
"command": "git.timeline.openCommit",
"title": "%command.timelineOpenCommit%",
"title": "%command.openCommit%",
"icon": "$(diff-multiple)",
"category": "Git"
},
@@ -776,13 +777,22 @@
"command": "git.viewChanges",
"title": "%command.viewChanges%",
"icon": "$(diff-multiple)",
"category": "Git"
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.viewStagedChanges",
"title": "%command.viewStagedChanges%",
"icon": "$(diff-multiple)",
"category": "Git"
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.openCommit",
"title": "%command.openCommit%",
"icon": "$(diff-multiple)",
"category": "Git",
"enablement": "!operationInProgress"
}
],
"continueEditSession": [
@@ -1274,6 +1284,10 @@
{
"command": "git.viewStagedChanges",
"when": "false"
},
{
"command": "git.openCommit",
"when": "false"
}
],
"scm/title": [
@@ -1751,6 +1765,20 @@
"group": "1_modification@3"
}
],
"scm/incoming/historyItem/context": [
{
"command": "git.openCommit",
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
}
],
"scm/outgoing/historyItem/context": [
{
"command": "git.openCommit",
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
}
],
"editor/title": [
{
"command": "git.openFile",