Skip to content

Commit 9665127

Browse files
author
Akash Satheesan
committed
fix(lib/vscode): fix types in server.ts
1 parent 7894074 commit 9665127

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/vscode/src/vs/server/node/server.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from 'fs';
22
import * as net from 'net';
3-
import { release } from 'os';
3+
import { hostname, release } from 'os';
44
import * as path from 'path';
55
import { Emitter } from 'vs/base/common/event';
66
import { 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

Comments
 (0)