mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Register Notebook Editor Model during instantiation (#6891)
This commit is contained in:
committed by
Chris LaFreniere
parent
bcb5384639
commit
44bc7a89df
@@ -354,7 +354,7 @@ export class NotebookInput extends EditorInput {
|
|||||||
textEditorModelReference.object.textEditorModel.onBeforeAttached();
|
textEditorModelReference.object.textEditorModel.onBeforeAttached();
|
||||||
textOrUntitledEditorModel = await textEditorModelReference.object.load();
|
textOrUntitledEditorModel = await textEditorModelReference.object.load();
|
||||||
}
|
}
|
||||||
this._model = this.instantiationService.createInstance(NotebookEditorModel, this.resource, textOrUntitledEditorModel);
|
this._model = this._register(this.instantiationService.createInstance(NotebookEditorModel, this.resource, textOrUntitledEditorModel));
|
||||||
this.hookDirtyListener(this._model.onDidChangeDirty, () => this._onDidChangeDirty.fire());
|
this.hookDirtyListener(this._model.onDidChangeDirty, () => this._onDidChangeDirty.fire());
|
||||||
this._modelResolved.resolve();
|
this._modelResolved.resolve();
|
||||||
return this._model;
|
return this._model;
|
||||||
|
|||||||
Reference in New Issue
Block a user