mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:22:19 +01:00
Fix build
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user