mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
Save charting state in SQL notebooks. (#9789)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -487,6 +487,7 @@ export interface ICellModel {
|
||||
readonly onCellModeChanged: Event<boolean>;
|
||||
modelContentChangedEvent: IModelContentChangedEvent;
|
||||
isEditMode: boolean;
|
||||
sendChangeToNotebook(change: NotebookChangeType): void;
|
||||
}
|
||||
|
||||
export interface IModelFactory {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user