1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-29 13:38:46 +00:00

fix(lib/vscode): fix types in server.ts

This commit is contained in:
Akash Satheesan 2021-05-03 20:34:48 +05:30
parent 84e12bd587
commit f10b703e84

View File

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