Procházet zdrojové kódy

Filters main worktree from delete

main
Eric Amodio před 2 roky
rodič
revize
c3049d5adb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/commands/git/worktree.ts

+ 1
- 1
src/commands/git/worktree.ts Zobrazit soubor

@ -545,7 +545,7 @@ export class WorktreeGitCommand extends QuickCommand {
context.title = getTitle('Worktrees', state.subcommand);
const result = yield* pickWorktreesStep(state, context, {
filter: wt => !wt.opened, // Can't delete an open worktree
filter: wt => wt.main || !wt.opened, // Can't delete the main or opened worktree
includeStatus: true,
picked: state.uris?.map(uri => uri.toString()),
placeholder: 'Choose worktrees to delete',

Načítá se…
Zrušit
Uložit