@@ -21,7 +21,7 @@ import product from 'vs/platform/product/common/product';
21
21
import { IProductService } from 'vs/platform/product/common/productService' ;
22
22
import { resolveMarketplaceHeaders } from 'vs/platform/externalServices/common/marketplace' ;
23
23
import { InMemoryStorageService , IStorageService } from 'vs/platform/storage/common/storage' ;
24
- import { ITelemetryService , TelemetryConfiguration , TELEMETRY_SETTING_ID } from 'vs/platform/telemetry/common/telemetry' ;
24
+ import { TelemetryConfiguration , TELEMETRY_SETTING_ID } from 'vs/platform/telemetry/common/telemetry' ;
25
25
import { TargetPlatform } from 'vs/platform/extensions/common/extensions' ;
26
26
import { NullTelemetryService } from 'vs/platform/telemetry/common/telemetryUtils' ;
27
27
@@ -37,7 +37,6 @@ class EnvironmentServiceMock extends mock<IEnvironmentService>() {
37
37
suite ( 'Extension Gallery Service' , ( ) => {
38
38
const disposables : DisposableStore = new DisposableStore ( ) ;
39
39
let fileService : IFileService , environmentService : IEnvironmentService , storageService : IStorageService , productService : IProductService , configurationService : IConfigurationService ;
40
- let telemetryService : ITelemetryService ;
41
40
42
41
setup ( ( ) => {
43
42
const serviceMachineIdResource = joinPath ( URI . file ( 'tests' ) . with ( { scheme : 'vscode-tests' } ) , 'machineid' ) ;
@@ -49,15 +48,14 @@ suite('Extension Gallery Service', () => {
49
48
configurationService = new TestConfigurationService ( { [ TELEMETRY_SETTING_ID ] : TelemetryConfiguration . ON } ) ;
50
49
configurationService . updateValue ( TELEMETRY_SETTING_ID , TelemetryConfiguration . ON ) ;
51
50
productService = { _serviceBrand : undefined , ...product , enableTelemetry : true } ;
52
- telemetryService = NullTelemetryService ;
53
51
} ) ;
54
52
55
53
teardown ( ( ) => disposables . clear ( ) ) ;
56
54
57
55
test ( 'marketplace machine id' , async ( ) => {
58
- const headers = await resolveMarketplaceHeaders ( product . version , productService , environmentService , configurationService , fileService , storageService , telemetryService ) ;
56
+ const headers = await resolveMarketplaceHeaders ( product . version , productService , environmentService , configurationService , fileService , storageService , NullTelemetryService ) ;
59
57
assert . ok ( isUUID ( headers [ 'X-Market-User-Id' ] ) ) ;
60
- const headers2 = await resolveMarketplaceHeaders ( product . version , productService , environmentService , configurationService , fileService , storageService , telemetryService ) ;
58
+ const headers2 = await resolveMarketplaceHeaders ( product . version , productService , environmentService , configurationService , fileService , storageService , NullTelemetryService ) ;
61
59
assert . strictEqual ( headers [ 'X-Market-User-Id' ] , headers2 [ 'X-Market-User-Id' ] ) ;
62
60
} ) ;
63
61
0 commit comments