File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,16 @@ export class HistoryCommandListener implements IDataScienceCommandListener {
138138 await this . fileSystem . writeFile ( uri . fsPath , JSON . stringify ( notebook ) ) ;
139139 }
140140 } , localize . DataScience . exportingFormat ( ) , file ) ;
141+
142+ // When all done, show a notice that it completed.
143+ const openQuestion = localize . DataScience . exportOpenQuestion ( ) ;
144+ this . applicationShell . showInformationMessage ( localize . DataScience . exportDialogComplete ( ) . format ( uri . fsPath ) , openQuestion ) . then ( ( str : string | undefined ) => {
145+ if ( str === openQuestion ) {
146+ // If the user wants to, open the notebook they just generated.
147+ this . jupyterExecution . spawnNotebook ( uri . fsPath ) . ignoreErrors ( ) ;
148+ }
149+ } ) ;
150+
141151 }
142152 }
143153 }
You can’t perform that action at this time.
0 commit comments