Consume proposed telemetry API (#165862)

* Consume proposed telemetry API

* Update webpack
This commit is contained in:
Logan Ramos
2022-11-08 21:58:28 -05:00
committed by GitHub
parent fd5edb9906
commit bf1697d98c
28 changed files with 3988 additions and 337 deletions

View File

@@ -178,8 +178,8 @@ export async function _activate(context: ExtensionContext): Promise<GitExtension
const logger = window.createOutputChannel('Git', { log: true });
disposables.push(logger);
const { name, version, aiKey } = require('../package.json') as { name: string; version: string; aiKey: string };
const telemetryReporter = new TelemetryReporter(name, version, aiKey);
const { aiKey } = require('../package.json') as { aiKey: string };
const telemetryReporter = new TelemetryReporter(aiKey);
deactivateTasks.push(() => telemetryReporter.dispose());
const config = workspace.getConfiguration('git', null);