mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix vscode-jupyter#13522. Clear attachment if it does not exit. (#186578)
Fix #184630. Clear attachment if it does not exit.
This commit is contained in:
@@ -232,7 +232,7 @@ export class AttachmentCleaner implements vscode.CodeActionProvider {
|
||||
if (cell.index > -1 && !objectEquals(markdownAttachmentsInUse, cell.metadata.attachments)) {
|
||||
const updateMetadata: { [key: string]: any } = deepClone(cell.metadata);
|
||||
if (Object.keys(markdownAttachmentsInUse).length === 0) {
|
||||
updateMetadata.attachments = null;
|
||||
updateMetadata.attachments = undefined;
|
||||
} else {
|
||||
updateMetadata.attachments = markdownAttachmentsInUse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user