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