mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Watch for on load event (#12309)
This commit is contained in:
@@ -322,7 +322,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
return !ids ? [] : ids;
|
||||
}
|
||||
|
||||
public async loadContents(isTrusted: boolean = false): Promise<void> {
|
||||
public async loadContents(isTrusted = false, forceLayoutChange = false): Promise<void> {
|
||||
try {
|
||||
this._trustedMode = isTrusted;
|
||||
|
||||
@@ -369,6 +369,9 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
if (this._cells.length === 0 || this._cells.every(cell => cell.cellType === CellTypes.Markdown)) {
|
||||
this.trustedMode = true;
|
||||
}
|
||||
if (forceLayoutChange) {
|
||||
this._layoutChanged.fire();
|
||||
}
|
||||
} catch (error) {
|
||||
this._inErrorState = true;
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user