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 c655326 commit 3dcffc4Copy full SHA for 3dcffc4
src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts
@@ -1817,7 +1817,9 @@ export class ModifiedElement extends AbstractElementRenderer {
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);
+ if (this._editor) {
1821
+ this._editor.setModel(null);
1822
+ }
1823
1824
if (this._editor && this._editorViewStateChanged) {
1825
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());
0 commit comments