Notebook model ready sooner (#10420)

This commit is contained in:
Chris LaFreniere
2020-05-15 11:48:11 -07:00
committed by GitHub
parent ebf47224b7
commit 452bd6a0cb
2 changed files with 7 additions and 2 deletions

View File

@@ -238,10 +238,10 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
private async doLoad(): Promise<void> {
try {
await this.createModelAndLoadContents();
await this.setNotebookManager();
await this.loadModel();
this._modelReadyDeferred.resolve(this._model);
this.notebookService.addNotebookEditor(this);
await this.setNotebookManager();
await this.loadModel();
} catch (error) {
if (error) {
// Offer to create a file from the error if we have a file not found and the name is valid