File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/vs/workbench/contrib/notebook/browser/viewModel Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ export class NotebookCellOutlineProvider {
185
185
186
186
dispose ( ) : void {
187
187
// selectionListener.clear();
188
+ this . _entriesDisposables . dispose ( ) ;
188
189
this . _dispoables . dispose ( ) ;
189
190
}
190
191
@@ -329,6 +330,11 @@ export class NotebookCellOutlineProvider {
329
330
} ;
330
331
if ( this . _configurationService . getValue ( OutlineConfigKeys . problemsEnabled ) ) {
331
332
markerServiceListener . value = this . _markerService . onMarkerChanged ( e => {
333
+ if ( notebookEditorWidget . isDisposed ) {
334
+ console . error ( 'notebook editor is disposed' ) ;
335
+ return ;
336
+ }
337
+
332
338
if ( e . some ( uri => notebookEditorWidget . getCellsInRange ( ) . some ( cell => isEqual ( cell . uri , uri ) ) ) ) {
333
339
doUpdateMarker ( false ) ;
334
340
this . _onDidChange . fire ( { } ) ;
You can’t perform that action at this time.
0 commit comments