Skip to content

Commit e7201b0

Browse files
authored
Display just worktree name in Background agents (#2396)
1 parent a2362a4 commit e7201b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { disposableTimeout } from '../../../util/vs/base/common/async';
1818
import { isCancellationError } from '../../../util/vs/base/common/errors';
1919
import { Emitter, Event } from '../../../util/vs/base/common/event';
2020
import { Disposable, DisposableStore, IDisposable, IReference, toDisposable } from '../../../util/vs/base/common/lifecycle';
21-
import { isEqual } from '../../../util/vs/base/common/resources';
21+
import { basename, isEqual } from '../../../util/vs/base/common/resources';
2222
import { URI } from '../../../util/vs/base/common/uri';
2323
import { IInstantiationService } from '../../../util/vs/platform/instantiation/common/instantiation';
2424
import { ToolCall } from '../../agents/copilotcli/common/copilotCLITools';
@@ -89,7 +89,7 @@ export class CopilotCLIWorktreeManager {
8989
const result = await this.tryCreateWorktree(progress);
9090
resolve(result);
9191
if (result) {
92-
return vscode.l10n.t('Created isolated worktree at {0}', result);
92+
return vscode.l10n.t('Created isolated worktree at {0}', basename(Uri.file(result)));
9393
}
9494
return undefined;
9595
});

0 commit comments

Comments
 (0)