mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
SCM Graph - Add more commands to the context menu (#228480)
* SCM Graph - add "Checkout (Detached)" command * Add "Cherry Pick" command
This commit is contained in:
@@ -452,6 +452,12 @@
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.checkoutRefDetached",
|
||||
"title": "%command.checkoutRefDetached%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.branch",
|
||||
"title": "%command.branch%",
|
||||
@@ -618,6 +624,12 @@
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.cherryPickRef",
|
||||
"title": "%command.cherryPickRef%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.addRemote",
|
||||
"title": "%command.addRemote%",
|
||||
@@ -1446,6 +1458,14 @@
|
||||
{
|
||||
"command": "git.copyCommitMessage",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.checkoutRefDetached",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.cherryPickRef",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"scm/title": [
|
||||
@@ -1953,6 +1973,16 @@
|
||||
"when": "scmProvider == git",
|
||||
"group": "1_create@2"
|
||||
},
|
||||
{
|
||||
"command": "git.cherryPickRef",
|
||||
"when": "scmProvider == git",
|
||||
"group": "2_modify@1"
|
||||
},
|
||||
{
|
||||
"command": "git.checkoutRefDetached",
|
||||
"when": "scmProvider == git",
|
||||
"group": "2_modify@2"
|
||||
},
|
||||
{
|
||||
"command": "git.copyCommitId",
|
||||
"when": "scmProvider == git && !listMultiSelection",
|
||||
|
||||
Reference in New Issue
Block a user