mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix build
This commit is contained in:
parent
cbeee3bc65
commit
3ff1222366
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue