提交 34946341 编写于 作者: C Christof Marti

Always split quick links

上级 6dc5253e
...@@ -40,16 +40,13 @@ export const NullTelemetryService = { ...@@ -40,16 +40,13 @@ export const NullTelemetryService = {
}; };
export function loadExperiments(accessor: ServicesAccessor): ITelemetryExperiments { export function loadExperiments(accessor: ServicesAccessor): ITelemetryExperiments {
const storageService = accessor.get(IStorageService); // const storageService = accessor.get(IStorageService);
const configurationService = accessor.get(IConfigurationService); const configurationService = accessor.get(IConfigurationService);
let { // let {
mergeQuickLinks, // } = splitExperimentsRandomness(storageService);
} = splitExperimentsRandomness(storageService);
return applyOverrides({ return applyOverrides(defaultExperiments, configurationService);
mergeQuickLinks,
}, configurationService);
} }
function applyOverrides(experiments: ITelemetryExperiments, configurationService: IConfigurationService): ITelemetryExperiments { function applyOverrides(experiments: ITelemetryExperiments, configurationService: IConfigurationService): ITelemetryExperiments {
...@@ -62,6 +59,7 @@ function applyOverrides(experiments: ITelemetryExperiments, configurationService ...@@ -62,6 +59,7 @@ function applyOverrides(experiments: ITelemetryExperiments, configurationService
return experiments; return experiments;
} }
// tslint:disable-next-line:no-unused-variable
function splitExperimentsRandomness(storageService: IStorageService): ITelemetryExperiments { function splitExperimentsRandomness(storageService: IStorageService): ITelemetryExperiments {
const random1 = getExperimentsRandomness(storageService); const random1 = getExperimentsRandomness(storageService);
const [random2, /* showTaskDocumentation */] = splitRandom(random1); const [random2, /* showTaskDocumentation */] = splitRandom(random1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册