diff --git a/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts b/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts index 40309dfa87..bd27ddc5ef 100644 --- a/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts +++ b/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts @@ -285,12 +285,14 @@ export abstract class NotebookInput extends EditorInput { } async save(groupId: number, options?: ITextFileSaveOptions): Promise { + this.updateModel(); let input = await this.textInput.save(groupId, options); await this.setTrustForNewEditor(input); return input; } async saveAs(group: number, options?: ITextFileSaveOptions): Promise { + this.updateModel(); let input = await this.textInput.saveAs(group, options); await this.setTrustForNewEditor(input); return input;