11import * as fs from 'fs' ;
22import * as net from 'net' ;
3- import { release } from 'os' ;
3+ import { hostname , release } from 'os' ;
44import * as path from 'path' ;
55import { Emitter } from 'vs/base/common/event' ;
66import { Schemas } from 'vs/base/common/network' ;
@@ -255,6 +255,7 @@ export class Vscode {
255255 instantiationService . invokeFunction ( ( accessor ) => {
256256 instantiationService . createInstance ( LogsDataCleaner ) ;
257257
258+ const commit = typeof product . commit === 'string' ? product . commit : 'unknown' ;
258259 let telemetryService : ITelemetryService ;
259260 if ( ! environmentService . disableTelemetry ) {
260261 telemetryService = new TelemetryService ( {
@@ -264,8 +265,8 @@ export class Vscode {
264265 ) ,
265266 sendErrorTelemetry : true ,
266267 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' ,
269270 ) ,
270271 piiPaths,
271272 } , configurationService ) ;
0 commit comments