@@ -8,16 +8,14 @@ import * as os from 'os';
88import * as uuid from 'vs/base/common/uuid' ;
99import { readFile } from 'vs/base/node/pfs' ;
1010
11- export function resolveCommonProperties ( commit : string | undefined , version : string , machineId : string , installSourcePath : string ) : Promise < { [ name : string ] : string ; } > {
12- const result : { [ name : string ] : string ; } = Object . create ( null ) ;
11+ export function resolveCommonProperties ( commit : string | undefined , version : string , machineId : string , installSourcePath : string ) : Promise < { [ name : string ] : string | undefined ; } > {
12+ const result : { [ name : string ] : string | undefined ; } = Object . create ( null ) ;
1313 // __GDPR__COMMON__ "common.machineId" : { "endPoint": "MacAddressHash", "classification": "EndUserPseudonymizedInformation", "purpose": "FeatureInsight" }
1414 result [ 'common.machineId' ] = machineId ;
1515 // __GDPR__COMMON__ "sessionID" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
1616 result [ 'sessionID' ] = uuid . generateUuid ( ) + Date . now ( ) ;
17- if ( typeof commit === 'string' ) {
18- // __GDPR__COMMON__ "commitHash" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
19- result [ 'commitHash' ] = commit ;
20- }
17+ // __GDPR__COMMON__ "commitHash" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
18+ result [ 'commitHash' ] = commit ;
2119 // __GDPR__COMMON__ "version" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
2220 result [ 'version' ] = version ;
2321 // __GDPR__COMMON__ "common.platformVersion" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
0 commit comments