use interactive name as saved ipynb name

This commit is contained in:
aamunger
2023-06-19 15:32:58 -07:00
parent c72605e962
commit 92c2bd0cf8
2 changed files with 2 additions and 1 deletions
@@ -396,7 +396,7 @@ registerAction2(class extends Action2 {
counter++;
} while (existingNotebookDocument.has(notebookUri.toString()));
logService.info('Open new interactive window:', notebookUri.toString(), inputUri.toString());
logService.debug('Open new interactive window:', notebookUri.toString(), inputUri.toString());
if (id) {
const allKernels = kernelService.getMatchingKernel({ uri: notebookUri, viewType: 'interactive' }).all;
@@ -187,6 +187,7 @@ export class InteractiveEditorInput extends EditorInput implements ICompositeNot
return undefined;
}
const filename = this.getName() + '.ipynb';
const pathCandidate = joinPath(await this._fileDialogService.defaultFilePath(), 'scratch.ipynb');
const target = await this._fileDialogService.pickFileToSave(pathCandidate, options?.availableFileSystems);