From 56c64a2da71d81991080d99ed598426ef5e2e3ba Mon Sep 17 00:00:00 2001 From: Joyce Er <30305945+joyceerhl@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:36:52 -0800 Subject: [PATCH] fix: don't duplicate non-file chat attachments (#241774) --- src/vs/workbench/contrib/chat/browser/chatWidget.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatWidget.ts b/src/vs/workbench/contrib/chat/browser/chatWidget.ts index 5a2d737c37049..12fba91fa444d 100644 --- a/src/vs/workbench/contrib/chat/browser/chatWidget.ts +++ b/src/vs/workbench/contrib/chat/browser/chatWidget.ts @@ -1124,13 +1124,6 @@ export class ChatWidget extends Disposable implements IChatWidget { } } - // Then take any attachments that are not files - for (const attachment of this.attachmentModel.attachments) { - if (!URI.isUri(attachment.value)) { - editingSessionAttachedContext.push(attachment); - } - } - // add prompt instruction references to the attached context, if enabled const promptInstructionUris = new ResourceSet(promptInstructions.chatAttachments.map((v) => v.value) as URI[]); if (instructionsEnabled) {