Filetype while prmopting for save #3552 (#3575)

This commit is contained in:
Raj
2018-12-10 17:02:16 -08:00
committed by GitHub
parent 7f6cd514a5
commit ca3146d38f

View File

@@ -391,7 +391,10 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
}
promptForPath(defaultPath: string): TPromise<string> {
return this.windowService.showSaveDialog({ defaultPath });
return this.windowService.showSaveDialog({
defaultPath: defaultPath,
filters: [{ name: localize('notebookFile', 'Notebook'), extensions: ['ipynb']}]
});
}
// Entry point to save notebook