mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-01 05:02:35 +01:00
use interactive name as saved ipynb name
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user