Save charting state in SQL notebooks. (#9789)

This commit is contained in:
Cory Rivera
2020-03-30 16:48:28 -07:00
committed by GitHub
parent bb135d6c67
commit d363ea33b5
10 changed files with 123 additions and 53 deletions

View File

@@ -445,7 +445,7 @@ export class CellModel implements ICellModel {
}
}
private sendChangeToNotebook(change: NotebookChangeType): void {
public sendChangeToNotebook(change: NotebookChangeType): void {
if (this._options && this._options.notebook) {
this._options.notebook.onCellChange(this, change);
}

View File

@@ -487,6 +487,7 @@ export interface ICellModel {
readonly onCellModeChanged: Event<boolean>;
modelContentChangedEvent: IModelContentChangedEvent;
isEditMode: boolean;
sendChangeToNotebook(change: NotebookChangeType): void;
}
export interface IModelFactory {

View File

@@ -989,6 +989,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
case NotebookChangeType.CellOutputUpdated:
case NotebookChangeType.CellSourceUpdated:
case NotebookChangeType.CellInputVisibilityChanged:
case NotebookChangeType.CellMetadataUpdated:
changeInfo.isDirty = true;
changeInfo.modelContentChangedEvent = cell.modelContentChangedEvent;
break;