浏览代码

Filters main worktree from delete

main
Eric Amodio 2 年前
父节点
当前提交
c3049d5adb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/commands/git/worktree.ts

+ 1
- 1
src/commands/git/worktree.ts 查看文件

@ -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',

正在加载...
取消
保存