mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Merge pull request #267853 from mjbvz/dev/mjbvz/alone-gazelle
Don't eagerly attach pasted images in `provideDocumentPasteEdits`
This commit is contained in:
@@ -118,8 +118,6 @@ export class PasteImageProvider implements DocumentPasteEditProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
widget.attachmentModel.addContext(scaledImageContext);
|
||||
|
||||
// Make sure to attach only new contexts
|
||||
const currentContextIds = widget.attachmentModel.getAttachmentIDs();
|
||||
if (currentContextIds.has(scaledImageContext.id)) {
|
||||
|
||||
Reference in New Issue
Block a user