Git - Add context menu to history items (#205359)

This commit is contained in:
Ladislau Szomoru
2024-02-16 12:48:08 +01:00
committed by GitHub
parent 05e5d4bb07
commit e713ba0fb9
2 changed files with 31 additions and 4 deletions

View File

@@ -1882,6 +1882,11 @@
"command": "git.viewAllChanges",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
},
{
"command": "git.viewAllChanges",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "1_view@1"
}
],
"scm/incomingChanges/historyItem/context": [
@@ -1889,6 +1894,11 @@
"command": "git.viewCommit",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
},
{
"command": "git.viewCommit",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "1_view@1"
}
],
"scm/outgoingChanges": [
@@ -1906,13 +1916,13 @@
"scm/outgoingChanges/context": [
{
"command": "git.pushRef",
"group": "1_modification@1",
"when": "scmProvider == git && scmHistoryItemGroupHasUpstream"
"when": "scmProvider == git && scmHistoryItemGroupHasUpstream",
"group": "1_modification@1"
},
{
"command": "git.publish",
"group": "1_modification@1",
"when": "scmProvider == git && !scmHistoryItemGroupHasUpstream"
"when": "scmProvider == git && !scmHistoryItemGroupHasUpstream",
"group": "1_modification@1"
}
],
"scm/outgoingChanges/allChanges/context": [
@@ -1920,6 +1930,11 @@
"command": "git.viewAllChanges",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
},
{
"command": "git.viewAllChanges",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "1_view@1"
}
],
"scm/outgoingChanges/historyItem/context": [
@@ -1927,6 +1942,11 @@
"command": "git.viewCommit",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "inline@1"
},
{
"command": "git.viewCommit",
"when": "scmProvider == git && scmHistoryItemFileCount != 0 && config.multiDiffEditor.experimental.enabled",
"group": "1_view@1"
}
],
"editor/title": [