mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
move update model for notebook save to the input (#8995)
This commit is contained in:
@@ -285,12 +285,14 @@ export abstract class NotebookInput extends EditorInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async save(groupId: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
|
async save(groupId: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
|
||||||
|
this.updateModel();
|
||||||
let input = await this.textInput.save(groupId, options);
|
let input = await this.textInput.save(groupId, options);
|
||||||
await this.setTrustForNewEditor(input);
|
await this.setTrustForNewEditor(input);
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
async saveAs(group: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
|
async saveAs(group: number, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
|
||||||
|
this.updateModel();
|
||||||
let input = await this.textInput.saveAs(group, options);
|
let input = await this.textInput.saveAs(group, options);
|
||||||
await this.setTrustForNewEditor(input);
|
await this.setTrustForNewEditor(input);
|
||||||
return input;
|
return input;
|
||||||
|
|||||||
Reference in New Issue
Block a user