From 44fb93b620230f0fc0da65879633576d4bceb627 Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Wed, 31 Aug 2022 16:12:23 -0400 Subject: [PATCH] Don't use json module --- src/common/baseTelemetryReporter.ts | 5 ++--- tsconfig.json | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/baseTelemetryReporter.ts b/src/common/baseTelemetryReporter.ts index 13c6564..f903bbb 100644 --- a/src/common/baseTelemetryReporter.ts +++ b/src/common/baseTelemetryReporter.ts @@ -6,7 +6,6 @@ import type * as vscode from "vscode"; import type { TelemetryEventMeasurements, TelemetryEventProperties, RawTelemetryEventProperties } from "../../dist/telemetryReporter"; import { ITelemetryAppender } from "./baseTelemetryAppender"; import { TelemetryLevel, TelemetryUtil } from "./util"; -import { version } from "../../package.json"; export interface AppenderData { properties?: RawTelemetryEventProperties, @@ -157,8 +156,8 @@ export class BaseTelemetryReporter { commonProperties["common.platformversion"] = (this.osShim.release || "").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/, "$1$2$3"); commonProperties["common.extname"] = this.extensionId; commonProperties["common.extversion"] = this.extensionVersion; - // Reads version from package.json - commonProperties["common.telemetryclientversion"] = version; + // TODO @lramos15, this should be dynamic but loading JSON modules didn't play nicely + commonProperties["common.telemetryclientversion"] = "0.6.3"; if (this.vscodeAPI && this.vscodeAPI.env) { commonProperties["common.vscodemachineid"] = this.vscodeAPI.env.machineId; commonProperties["common.vscodesessionid"] = this.vscodeAPI.env.sessionId; diff --git a/tsconfig.json b/tsconfig.json index 4bdc7de..ec26faa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "compilerOptions": { "noEmitOnError": false, "strict": true, - "resolveJsonModule": true, "target": "ES2020", "module": "ES2020", "esModuleInterop": true,