Skip to content

Commit

Permalink
fix: don't duplicate non-file chat attachments (#241774)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl authored Feb 25, 2025
1 parent 59990f4 commit 56c64a2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/vs/workbench/contrib/chat/browser/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56c64a2

Please sign in to comment.