We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7f833 commit 23860e9Copy full SHA for 23860e9
src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.ts
@@ -209,7 +209,11 @@ export class InteractiveEditorInput extends EditorInput implements ICompositeNot
209
return undefined; // save cancelled
210
}
211
212
- return await this._editorModelReference.saveAs(target);
+ const saved = await this._editorModelReference.saveAs(target);
213
+ if (saved && 'resource' in saved && saved.resource) {
214
+ this._notebookService.getNotebookTextModel(saved.resource)?.dispose();
215
+ }
216
+ return saved;
217
218
219
override matches(otherInput: EditorInput | IUntypedEditorInput): boolean {
0 commit comments