From ab6fb810f8ccd469834e2104fdd5719b4df62d4d Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Wed, 19 Feb 2020 22:01:07 -0800 Subject: [PATCH] move update model for notebook save to the input (#8995) --- .../workbench/contrib/notebook/browser/models/notebookInput.ts | 2 ++ 1 file changed, 2 insertions(+) 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;