From ca3146d38fdc1771fc37298a6ef8eab1dc4485a2 Mon Sep 17 00:00:00 2001 From: Raj <44002319+rajmusuku@users.noreply.github.com> Date: Mon, 10 Dec 2018 17:02:16 -0800 Subject: [PATCH] Filetype while prmopting for save #3552 (#3575) --- src/sql/parts/notebook/notebook.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sql/parts/notebook/notebook.component.ts b/src/sql/parts/notebook/notebook.component.ts index 51937c8b22..86cb4248dd 100644 --- a/src/sql/parts/notebook/notebook.component.ts +++ b/src/sql/parts/notebook/notebook.component.ts @@ -391,7 +391,10 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe } promptForPath(defaultPath: string): TPromise { - return this.windowService.showSaveDialog({ defaultPath }); + return this.windowService.showSaveDialog({ + defaultPath: defaultPath, + filters: [{ name: localize('notebookFile', 'Notebook'), extensions: ['ipynb']}] + }); } // Entry point to save notebook