Skip to content

Commit 20deeee

Browse files
committed
regression - zone might be undefined on dispose
1 parent a292900 commit 20deeee

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/editor/contrib/gotoError/browser/gotoError.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,10 @@ class MarkerController implements editorCommon.IEditorContribution {
462462
private _cleanUp(): void {
463463
this._markersNavigationVisible.reset();
464464
this._callOnClose = dispose(this._callOnClose);
465-
this._zone.dispose();
466-
this._zone = null;
465+
if (this._zone) {
466+
this._zone.dispose();
467+
this._zone = null;
468+
}
467469
this._model = null;
468470
}
469471

0 commit comments

Comments
 (0)