Skip to content

Commit 3e4f87a

Browse files
committed
fixed small bugs
1 parent e3dae15 commit 3e4f87a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/client/datascience/commands/exportCommands.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export class ExportCommands implements IDisposable {
4545
}
4646

4747
private async export(model: INotebookModel, exportMethod?: ExportFormat) {
48+
if (!model) {
49+
// possibly show promp that you can't export if no model?
50+
return;
51+
}
52+
4853
if (exportMethod) {
4954
await this.exportManager.export(exportMethod, model);
5055
} else {

src/client/datascience/progress/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const progressMessages = {
1515
[ReportableAction.NotebookConnect]: DataScience.connectingToJupyter(),
1616
[ReportableAction.NotebookStart]: DataScience.startingJupyterNotebook(),
1717
[ReportableAction.RawKernelConnecting]: DataScience.rawKernelConnectingSession(),
18-
[ReportableAction.CheckingIfImportIsSupported]: 'Checking if import is supported', // TODO: Localize
18+
[ReportableAction.CheckingIfImportIsSupported]: 'Checking if import is supported', // Localize these later
1919
[ReportableAction.InstallingMissingDependencies]: 'Installing missing dependencies',
2020
[ReportableAction.ExportNotebookToPython]: 'Exporting Notebook to Python'
2121
};

0 commit comments

Comments
 (0)