move update model for notebook save to the input (#8995)

This commit is contained in:
Anthony Dresser
2020-02-19 22:01:07 -08:00
committed by GitHub
parent 7eef23f232
commit ab6fb810f8

View File

@@ -285,12 +285,14 @@ export abstract class NotebookInput extends EditorInput {
}
async save(groupId: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
this.updateModel();
let input = await this.textInput.save(groupId, options);
await this.setTrustForNewEditor(input);
return input;
}
async saveAs(group: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
this.updateModel();
let input = await this.textInput.saveAs(group, options);
await this.setTrustForNewEditor(input);
return input;