Notebook Views initialization fix (#17109)

Separate the Views load from the initialization. This way we can load previously created views, and only add the new views data to the document when needed. For now, this happens only when a view is created.
This commit is contained in:
Daniel Grajeda
2021-10-22 15:50:21 -06:00
committed by GitHub
parent 6e65063317
commit 6200a61382
6 changed files with 80 additions and 33 deletions

View File

@@ -46,7 +46,7 @@ export class NotebookEditorComponent extends AngularDisposable {
public views: NotebookViewsExtension;
public activeView: INotebookView;
public viewMode: ViewMode;
public ViewMode = ViewMode;
public ViewMode = ViewMode; //For use of the enum in the template
constructor(
@Inject(ILogService) private readonly logService: ILogService,