@@ -14,8 +14,8 @@ import { IInterpreterService } from '../../interpreter/contracts';
14
14
import { IServiceContainer } from '../../ioc/types' ;
15
15
import { ICodeExecutionHelper } from '../types' ;
16
16
import { traceError } from '../../logging' ;
17
- import { IExperimentService , Resource } from '../../common/types' ;
18
- import { EnableREPLSmartSend } from '../../common/experiments/groups' ;
17
+ import { IExperimentService , IExperimentService , Resource } from '../../common/types' ;
18
+ import { EnableREPLSmartSend , EnableREPLSmartSend } from '../../common/experiments/groups' ;
19
19
20
20
@injectable ( )
21
21
export class CodeExecutionHelper implements ICodeExecutionHelper {
@@ -29,6 +29,8 @@ export class CodeExecutionHelper implements ICodeExecutionHelper {
29
29
30
30
// private readonly configSettings: IConfigurationService;
31
31
32
+ // private readonly configSettings: IConfigurationService;
33
+
32
34
constructor ( @inject ( IServiceContainer ) private readonly serviceContainer : IServiceContainer ) {
33
35
this . documentManager = serviceContainer . get < IDocumentManager > ( IDocumentManager ) ;
34
36
this . applicationShell = serviceContainer . get < IApplicationShell > ( IApplicationShell ) ;
@@ -263,3 +265,8 @@ function pythonSmartSendEnabled(serviceContainer: IServiceContainer): boolean {
263
265
const experiment = serviceContainer . get < IExperimentService > ( IExperimentService ) ;
264
266
return experiment . inExperimentSync ( EnableREPLSmartSend . experiment ) ;
265
267
}
268
+
269
+ function pythonSmartSendEnabled ( serviceContainer : IServiceContainer ) : boolean {
270
+ const experiment = serviceContainer . get < IExperimentService > ( IExperimentService ) ;
271
+ return experiment . inExperimentSync ( EnableREPLSmartSend . experiment ) ;
272
+ }
0 commit comments