rework deletion flow (#256415)

* rework deletion flow

* change delete label

* Revise deletion of worktree

* reopen correct repo

* clean up

* Refactor deleteWorkspace command

* Do not show deleteWorktree command in the command palette

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
This commit is contained in:
Christy 😺
2025-07-18 07:06:08 -07:00
committed by GitHub
parent 4d63b40906
commit dd052e8d44
7 changed files with 55 additions and 39 deletions

View File

@@ -1307,7 +1307,7 @@
},
{
"command": "git.deleteWorktree",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
"when": "false"
},
{
"command": "git.deleteRemoteTag",
@@ -2571,6 +2571,7 @@
"group": "worktrees@1"
},
{
"when": "scmProviderContext == worktree",
"command": "git.deleteWorktree",
"group": "worktrees@2"
}