SCM - add basic context menu to history graph (#222162)

This commit is contained in:
Ladislau Szomoru
2024-07-19 12:20:53 +02:00
committed by GitHub
parent f674ef206c
commit 129edfe9cd
7 changed files with 104 additions and 10 deletions

View File

@@ -894,6 +894,16 @@
"icon": "$(diff-multiple)",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.copyCommitId",
"title": "%command.timelineCopyCommitId%",
"category": "Git"
},
{
"command": "git.copyCommitMessage",
"title": "%command.timelineCopyCommitMessage%",
"category": "Git"
}
],
"continueEditSession": [
@@ -1429,6 +1439,14 @@
{
"command": "git.pushRef",
"when": "false"
},
{
"command": "git.copyCommitId",
"when": "false"
},
{
"command": "git.copyCommitMessage",
"when": "false"
}
],
"scm/title": [
@@ -1940,6 +1958,23 @@
"group": "navigation@3"
}
],
"scm/historyItem/context": [
{
"command": "git.viewCommit",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && !listMultiSelection && config.multiDiffEditor.experimental.enabled",
"group": "1_view@1"
},
{
"command": "git.copyCommitId",
"when": "scmProvider == git && !listMultiSelection",
"group": "3_copy@1"
},
{
"command": "git.copyCommitMessage",
"when": "scmProvider == git && !listMultiSelection",
"group": "3_copy@2"
}
],
"scm/incomingChanges": [
{
"command": "git.fetchRef",