22// Licensed under the MIT License.
33'use strict' ;
44import { nbformat } from '@jupyterlab/coreutils' ;
5- import { inject , injectable , multiInject , named , optional } from 'inversify' ;
5+ import { inject , injectable , named } from 'inversify' ;
66import * as uuid from 'uuid/v4' ;
77import { Uri } from 'vscode' ;
88import { CancellationToken } from 'vscode-jsonrpc' ;
@@ -18,13 +18,13 @@ import {
1818 Resource
1919} from '../../common/types' ;
2020import { IInterpreterService } from '../../interpreter/contracts' ;
21+ import { IServiceContainer } from '../../ioc/types' ;
2122import { JUPYTER_OUTPUT_CHANNEL } from '../constants' ;
2223import {
2324 IConnection ,
2425 IDataScience ,
2526 IJupyterSessionManagerFactory ,
2627 INotebook ,
27- INotebookExecutionLogger ,
2828 INotebookServer ,
2929 INotebookServerLaunchInfo
3030} from '../types' ;
@@ -46,7 +46,7 @@ type JupyterServerClassType = {
4646 configService : IConfigurationService ,
4747 sessionManager : IJupyterSessionManagerFactory ,
4848 workspaceService : IWorkspaceService ,
49- loggers : INotebookExecutionLogger [ ] ,
49+ serviceContainer : IServiceContainer ,
5050 appShell : IApplicationShell ,
5151 fs : IFileSystem ,
5252 kernelSelector : KernelSelector ,
@@ -73,12 +73,12 @@ export class JupyterServerWrapper implements INotebookServer, ILiveShareHasRole
7373 @inject ( IConfigurationService ) configService : IConfigurationService ,
7474 @inject ( IJupyterSessionManagerFactory ) sessionManager : IJupyterSessionManagerFactory ,
7575 @inject ( IWorkspaceService ) workspaceService : IWorkspaceService ,
76- @multiInject ( INotebookExecutionLogger ) @optional ( ) loggers : INotebookExecutionLogger [ ] | undefined ,
7776 @inject ( IApplicationShell ) appShell : IApplicationShell ,
7877 @inject ( IFileSystem ) fs : IFileSystem ,
7978 @inject ( IInterpreterService ) interpreterService : IInterpreterService ,
8079 @inject ( KernelSelector ) kernelSelector : KernelSelector ,
81- @inject ( IOutputChannel ) @named ( JUPYTER_OUTPUT_CHANNEL ) jupyterOutput : IOutputChannel
80+ @inject ( IOutputChannel ) @named ( JUPYTER_OUTPUT_CHANNEL ) jupyterOutput : IOutputChannel ,
81+ @inject ( IServiceContainer ) serviceContainer : IServiceContainer
8282 ) {
8383 // The server factory will create the appropriate HostJupyterServer or GuestJupyterServer based on
8484 // the liveshare state.
@@ -93,7 +93,7 @@ export class JupyterServerWrapper implements INotebookServer, ILiveShareHasRole
9393 configService ,
9494 sessionManager ,
9595 workspaceService ,
96- loggers ? loggers : [ ] ,
96+ serviceContainer ,
9797 appShell ,
9898 fs ,
9999 kernelSelector ,
0 commit comments