mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +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:
parent
e133f004ed
commit
bce3304e98
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue