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:
Ladislau Szomoru
2025-11-01 12:27:56 +00:00
committed by GitHub
parent c0755c9484
commit 69e17b67f1
3 changed files with 90 additions and 2 deletions

View File

@@ -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"
}
],