mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Git - add more commands to repositories view (#274484)
* Git - add actions to delete branch/tag * Fix rebase action label * Git - add more commands
This commit is contained in:
@@ -1071,6 +1071,24 @@
|
||||
"title": "%command.rebase2%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteBranch",
|
||||
"title": "%command.deleteRef%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteTag",
|
||||
"title": "%command.deleteRef%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.createFrom",
|
||||
"title": "%command.createFrom%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
}
|
||||
],
|
||||
"continueEditSession": [
|
||||
@@ -1722,6 +1740,18 @@
|
||||
{
|
||||
"command": "git.repositories.rebase",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteBranch",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteTag",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.createFrom",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"scm/title": [
|
||||
@@ -1950,9 +1980,24 @@
|
||||
"group": "2_modify@2",
|
||||
"when": "scmProvider == git && scmArtifactGroupId == branches"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.createFrom",
|
||||
"group": "3_modify@1",
|
||||
"when": "scmProvider == git && scmArtifactGroupId == branches"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteBranch",
|
||||
"group": "3_modify@2",
|
||||
"when": "scmProvider == git && scmArtifactGroupId == branches"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.deleteTag",
|
||||
"group": "3_modify@1",
|
||||
"when": "scmProvider == git && scmArtifactGroupId == tags"
|
||||
},
|
||||
{
|
||||
"command": "git.repositories.compareRef",
|
||||
"group": "3_compare@1",
|
||||
"group": "4_compare@1",
|
||||
"when": "scmProvider == git"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user