Git - cleanup delete worktree command implementation (#278018)

This commit is contained in:
Ladislau Szomoru
2025-11-18 08:17:55 +00:00
committed by GitHub
parent 5bad6a3248
commit ae77536e70
5 changed files with 55 additions and 72 deletions

View File

@@ -585,8 +585,8 @@
"enablement": "!operationInProgress"
},
{
"command": "git.deleteWorktreeFromPalette",
"title": "%command.deleteWorktreeFromPalette%",
"command": "git.deleteWorktree2",
"title": "%command.deleteWorktree2%",
"category": "Git",
"enablement": "!operationInProgress"
},
@@ -1437,10 +1437,6 @@
"command": "git.createWorktree",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
},
{
"command": "git.deleteWorktree",
"when": "false"
},
{
"command": "git.openWorktree",
"when": "false"
@@ -1450,9 +1446,13 @@
"when": "false"
},
{
"command": "git.deleteWorktreeFromPalette",
"command": "git.deleteWorktree",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
},
{
"command": "git.deleteWorktree2",
"when": "false"
},
{
"command": "git.deleteRemoteTag",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
@@ -1937,7 +1937,7 @@
"when": "scmProvider == git && scmProviderContext == worktree"
},
{
"command": "git.deleteWorktree",
"command": "git.deleteWorktree2",
"group": "2_worktree@1",
"when": "scmProvider == git && scmProviderContext == worktree"
}
@@ -2954,7 +2954,7 @@
},
{
"when": "scmProviderContext == worktree",
"command": "git.deleteWorktree",
"command": "git.deleteWorktree2",
"group": "worktrees@2"
}
]