mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +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;
|
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user