@@ -23,15 +23,14 @@ import * as localize from '../../../common/utils/localize';
2323import { noop } from '../../../common/utils/misc' ;
2424import { IServiceContainer } from '../../../ioc/types' ;
2525import { Identifiers , LiveShare , LiveShareCommands , Settings } from '../../constants' ;
26- import { KernelSelector } from '../../jupyter/kernels/kernelSelector' ;
26+ import { KernelSelector , KernelSpecInterpreter } from '../../jupyter/kernels/kernelSelector' ;
2727import { HostJupyterNotebook } from '../../jupyter/liveshare/hostJupyterNotebook' ;
2828import { LiveShareParticipantHost } from '../../jupyter/liveshare/liveShareParticipantMixin' ;
2929import { IRoleBasedObject } from '../../jupyter/liveshare/roleBasedFactory' ;
3030import { IKernelLauncher } from '../../kernel-launcher/types' ;
3131import { ProgressReporter } from '../../progress/progressReporter' ;
3232import {
3333 IDataScienceFileSystem ,
34- IJupyterKernelSpec ,
3534 INotebook ,
3635 INotebookExecutionInfo ,
3736 INotebookExecutionLogger ,
@@ -168,7 +167,7 @@ export class HostRawNotebookProvider
168167 ) ;
169168
170169 // Get the execution info for our notebook
171- const info = await this . getExecutionInfo ( kernelSpecInterpreter . kernelSpec ) ;
170+ const info = await this . getExecutionInfo ( kernelSpecInterpreter ) ;
172171
173172 if ( rawSession . isConnected ) {
174173 // Create our notebook
@@ -213,12 +212,12 @@ export class HostRawNotebookProvider
213212 }
214213
215214 // Get the notebook execution info for this raw session instance
216- private async getExecutionInfo ( kernelSpec ?: IJupyterKernelSpec ) : Promise < INotebookExecutionInfo > {
215+ private async getExecutionInfo ( kernelSpecInterpreter : KernelSpecInterpreter ) : Promise < INotebookExecutionInfo > {
217216 return {
218217 connectionInfo : this . getConnection ( ) ,
219218 uri : Settings . JupyterServerLocalLaunch ,
220- interpreter : undefined ,
221- kernelSpec : kernelSpec ,
219+ interpreter : kernelSpecInterpreter . interpreter ,
220+ kernelSpec : kernelSpecInterpreter . kernelSpec ,
222221 workingDir : await calculateWorkingDirectory ( this . configService , this . workspaceService , this . fs ) ,
223222 purpose : Identifiers . RawPurpose
224223 } ;
0 commit comments