diff --git a/src/client/datascience/interactive-ipynb/nativeEditorProviderOld.ts b/src/client/datascience/interactive-ipynb/nativeEditorProviderOld.ts index 1ed7109a3f10..fcdcea4afa2a 100644 --- a/src/client/datascience/interactive-ipynb/nativeEditorProviderOld.ts +++ b/src/client/datascience/interactive-ipynb/nativeEditorProviderOld.ts @@ -66,6 +66,8 @@ export class NativeEditorProviderOld extends NativeEditorProvider { const customDocument = this.customDocuments.get(resource.fsPath); if (customDocument) { await this.saveAs(customDocument, targetResource); + this.customDocuments.delete(resource.fsPath); + this.customDocuments.set(targetResource.fsPath, { ...customDocument, uri: targetResource }); } } )