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.
2 parents 1a0f603 + 3dcffc4 commit c059291Copy full SHA for c059291
src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts
@@ -1825,6 +1825,12 @@ export class ModifiedElement extends AbstractElementRenderer {
1825
}
1826
1827
override dispose() {
1828
+ // The editor isn't disposed yet, it can be re-used.
1829
+ // However the model can be disposed before the editor & that causes issues.
1830
+ if (this._editor) {
1831
+ this._editor.setModel(null);
1832
+ }
1833
+
1834
if (this._editor && this._editorViewStateChanged) {
1835
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
1836
0 commit comments