Skip to content

Commit

Permalink
start setting up experiment for smart send
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Sep 12, 2023
1 parent 6ae656d commit 61952f9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/client/terminals/codeExecution/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { IInterpreterService } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { ICodeExecutionHelper } from '../types';
import { traceError } from '../../logging';
import { IExperimentService, Resource } from '../../common/types';
import { EnableREPLSmartSend } from '../../common/experiments/groups';
import { IExperimentService, IExperimentService, Resource } from '../../common/types';
import { EnableREPLSmartSend, EnableREPLSmartSend } from '../../common/experiments/groups';

@injectable()
export class CodeExecutionHelper implements ICodeExecutionHelper {
Expand All @@ -29,6 +29,8 @@ export class CodeExecutionHelper implements ICodeExecutionHelper {

// private readonly configSettings: IConfigurationService;

// private readonly configSettings: IConfigurationService;

constructor(@inject(IServiceContainer) private readonly serviceContainer: IServiceContainer) {
this.documentManager = serviceContainer.get<IDocumentManager>(IDocumentManager);
this.applicationShell = serviceContainer.get<IApplicationShell>(IApplicationShell);
Expand Down Expand Up @@ -263,3 +265,8 @@ function pythonSmartSendEnabled(serviceContainer: IServiceContainer): boolean {
const experiment = serviceContainer.get<IExperimentService>(IExperimentService);
return experiment.inExperimentSync(EnableREPLSmartSend.experiment);
}

function pythonSmartSendEnabled(serviceContainer: IServiceContainer): boolean {
const experiment = serviceContainer.get<IExperimentService>(IExperimentService);
return experiment.inExperimentSync(EnableREPLSmartSend.experiment);
}

0 comments on commit 61952f9

Please sign in to comment.