1
1
import * as fs from 'fs' ;
2
2
import * as net from 'net' ;
3
- import { release } from 'os' ;
3
+ import { hostname , release } from 'os' ;
4
4
import * as path from 'path' ;
5
5
import { Emitter } from 'vs/base/common/event' ;
6
6
import { Schemas } from 'vs/base/common/network' ;
@@ -255,6 +255,7 @@ export class Vscode {
255
255
instantiationService . invokeFunction ( ( accessor ) => {
256
256
instantiationService . createInstance ( LogsDataCleaner ) ;
257
257
258
+ const commit = typeof product . commit === 'string' ? product . commit : 'unknown' ;
258
259
let telemetryService : ITelemetryService ;
259
260
if ( ! environmentService . disableTelemetry ) {
260
261
telemetryService = new TelemetryService ( {
@@ -264,8 +265,8 @@ export class Vscode {
264
265
) ,
265
266
sendErrorTelemetry : true ,
266
267
commonProperties : resolveCommonProperties (
267
- fileService , release ( ) , process . arch , product . commit , product . version , machineId ,
268
- [ ] , environmentService . installSourcePath , 'code-server' ,
268
+ fileService , release ( ) , hostname ( ) , process . arch , commit , product . version , machineId ,
269
+ undefined , environmentService . installSourcePath , 'code-server' ,
269
270
) ,
270
271
piiPaths,
271
272
} , configurationService ) ;
0 commit comments