Add Git: Delete action to run git rm command on the current document (#285411)

This commit is contained in:
Dmitriy Vasyura
2026-01-16 21:36:23 +01:00
committed by GitHub
parent 5896bece5f
commit 0e28a4b760
3 changed files with 53 additions and 0 deletions

View File

@@ -321,6 +321,13 @@
"icon": "$(discard)",
"enablement": "!operationInProgress"
},
{
"command": "git.delete",
"title": "%command.delete%",
"category": "Git",
"icon": "$(trash)",
"enablement": "!operationInProgress"
},
{
"command": "git.commit",
"title": "%command.commit%",
@@ -1297,6 +1304,10 @@
"command": "git.rename",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file && scmActiveResourceRepository"
},
{
"command": "git.delete",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file"
},
{
"command": "git.commit",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
@@ -3303,6 +3314,11 @@
"description": "%config.confirmSync%",
"default": true
},
"git.confirmCommittedDelete": {
"type": "boolean",
"description": "%config.confirmCommittedDelete%",
"default": true
},
"git.countBadge": {
"type": "string",
"enum": [