Fix build

This commit is contained in:
Logan Ramos 2021-08-30 16:06:11 -04:00
parent cbeee3bc65
commit 3ff1222366
No known key found for this signature in database
GPG key ID: D9CCFF14F0B18183
2 changed files with 5 additions and 3 deletions

View file

@ -34,7 +34,7 @@ export class TestConfigurationService implements IConfigurationService {
}
configuration = configuration ? configuration : this.configuration;
if (arg1 && typeof arg1 === 'string') {
return getConfigurationValue(configuration, arg1);
return configuration[arg1] ?? getConfigurationValue(configuration, arg1);
}
return configuration;
}

View file

@ -26,6 +26,7 @@ class EnvironmentServiceMock extends mock<IEnvironmentService>() {
constructor(serviceMachineIdResource: URI) {
super();
this.serviceMachineIdResource = serviceMachineIdResource;
this.isBuilt = true;
}
}
@ -40,8 +41,9 @@ suite('Extension Gallery Service', () => {
const fileSystemProvider = disposables.add(new InMemoryFileSystemProvider());
fileService.registerProvider(serviceMachineIdResource.scheme, fileSystemProvider);
storageService = new InMemoryStorageService();
configurationService = new TestConfigurationService();
productService = { _serviceBrand: undefined, ...product };
configurationService = new TestConfigurationService({ 'telemetry.enableTelemetry': true });
configurationService.updateValue('telemetry.enableTelemetry', true);
productService = { _serviceBrand: undefined, ...product, enableTelemetry: true };
});
teardown(() => disposables.clear());