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 214bf83 commit c655326Copy full SHA for c655326
src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts
@@ -1815,6 +1815,10 @@ export class ModifiedElement extends AbstractElementRenderer {
1815
}
1816
1817
override dispose() {
1818
+ // The editor isn't disposed yet, it can be re-used.
1819
+ // However the model can be disposed before the editor & that causes issues.
1820
+ this._editor!.setModel(null);
1821
+
1822
if (this._editor && this._editorViewStateChanged) {
1823
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
1824
0 commit comments