File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
src/extension/chatSessions/vscode-node Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments