Skip to content

Commit fa7f8f2

Browse files
committed
Revert "improve worktree creation progress (#1869)"
This reverts commit f1da07e.
1 parent 548327e commit fa7f8f2

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,17 @@ export class CopilotCLIWorktreeManager {
4242
return undefined;
4343
}
4444

45-
await stream.progress(vscode.l10n.t('Creating isolated worktree for session...'), async (progress) => {
46-
try {
47-
const worktreePath = await vscode.commands.executeCommand('git.createWorktreeWithDefaults') as string | undefined;
48-
if (worktreePath) {
49-
return vscode.l10n.t('Created isolated worktree at {0}', worktreePath);
50-
} else {
51-
progress.report(new vscode.ChatResponseWarningPart(vscode.l10n.t('Failed to create worktree for isolation, using default workspace directory')));
52-
}
53-
} catch (error) {
54-
progress.report(new vscode.ChatResponseWarningPart(vscode.l10n.t('Error creating worktree for isolation: {0}', error instanceof Error ? error.message : String(error))));
45+
try {
46+
const worktreePath = await vscode.commands.executeCommand('git.createWorktreeWithDefaults') as string | undefined;
47+
if (worktreePath) {
48+
stream.progress(vscode.l10n.t('Created isolated worktree at {0}', worktreePath));
49+
return worktreePath;
50+
} else {
51+
stream.warning(vscode.l10n.t('Failed to create worktree for isolation, using default workspace directory'));
5552
}
56-
});
57-
53+
} catch (error) {
54+
stream.warning(vscode.l10n.t('Error creating worktree for isolation: {0}', error instanceof Error ? error.message : String(error)));
55+
}
5856
return undefined;
5957
}
6058

0 commit comments

Comments
 (0)