Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Benjamin Christopher Simmonds
2026-03-11 21:26:54 +01:00
committed by GitHub
parent 466961c128
commit 5d3da238a1

View File

@@ -1899,9 +1899,8 @@ export class Repository implements Disposable {
}
private async _setupWorktree(worktreePath: string): Promise<void> {
// Copy worktree include files. We explicitly do not await this
// since we don't want to block the worktree creation on the
// copy operation.
// Copy worktree include files and wait for the copy to complete
// before running any worktree-created tasks.
await this._copyWorktreeIncludeFiles(worktreePath);
await this._runWorktreeCreatedTasks(worktreePath);