mirror of https://git.tuxpa.in/a/code-server.git
fix(lib/vscode): fix types in server.ts
This commit is contained in:
parent
84e12bd587
commit
f10b703e84
|
@ -1,6 +1,6 @@
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as net from 'net';
|
import * as net from 'net';
|
||||||
import { release } from 'os';
|
import { hostname, release } from 'os';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { Emitter } from 'vs/base/common/event';
|
import { Emitter } from 'vs/base/common/event';
|
||||||
import { Schemas } from 'vs/base/common/network';
|
import { Schemas } from 'vs/base/common/network';
|
||||||
|
@ -255,6 +255,7 @@ export class Vscode {
|
||||||
instantiationService.invokeFunction((accessor) => {
|
instantiationService.invokeFunction((accessor) => {
|
||||||
instantiationService.createInstance(LogsDataCleaner);
|
instantiationService.createInstance(LogsDataCleaner);
|
||||||
|
|
||||||
|
const commit = typeof product.commit === 'string' ? product.commit : 'unknown';
|
||||||
let telemetryService: ITelemetryService;
|
let telemetryService: ITelemetryService;
|
||||||
if (!environmentService.disableTelemetry) {
|
if (!environmentService.disableTelemetry) {
|
||||||
telemetryService = new TelemetryService({
|
telemetryService = new TelemetryService({
|
||||||
|
@ -264,8 +265,8 @@ export class Vscode {
|
||||||
),
|
),
|
||||||
sendErrorTelemetry: true,
|
sendErrorTelemetry: true,
|
||||||
commonProperties: resolveCommonProperties(
|
commonProperties: resolveCommonProperties(
|
||||||
fileService, release(), process.arch, product.commit, product.version, machineId,
|
fileService, release(), hostname(), process.arch, commit, product.version, machineId,
|
||||||
[], environmentService.installSourcePath, 'code-server',
|
undefined, environmentService.installSourcePath, 'code-server',
|
||||||
),
|
),
|
||||||
piiPaths,
|
piiPaths,
|
||||||
}, configurationService);
|
}, configurationService);
|
||||||
|
|
Loading…
Reference in New Issue