mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
null checks for onBeforeDetached (#7782)
This commit is contained in:
@@ -398,7 +398,7 @@ export class NotebookInput extends EditorInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public dispose(): void {
|
public dispose(): void {
|
||||||
if (this._model) {
|
if (this._model && this._model.editorModel && this._model.editorModel.textEditorModel) {
|
||||||
this._model.editorModel.textEditorModel.onBeforeDetached();
|
this._model.editorModel.textEditorModel.onBeforeDetached();
|
||||||
}
|
}
|
||||||
this._disposeContainer();
|
this._disposeContainer();
|
||||||
|
|||||||
Reference in New Issue
Block a user