Merge pull request #267853 from mjbvz/dev/mjbvz/alone-gazelle

Don't eagerly attach pasted images in `provideDocumentPasteEdits`
This commit is contained in:
Matt Bierner
2025-10-21 08:49:34 -07:00
committed by GitHub

View File

@@ -118,8 +118,6 @@ export class PasteImageProvider implements DocumentPasteEditProvider {
return; return;
} }
widget.attachmentModel.addContext(scaledImageContext);
// Make sure to attach only new contexts // Make sure to attach only new contexts
const currentContextIds = widget.attachmentModel.getAttachmentIDs(); const currentContextIds = widget.attachmentModel.getAttachmentIDs();
if (currentContextIds.has(scaledImageContext.id)) { if (currentContextIds.has(scaledImageContext.id)) {