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

@@ -50,8 +50,8 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
uriHandler: UriEventHandler,
ghesUri?: vscode.Uri
) {
const { name, version, aiKey } = context.extension.packageJSON as { name: string; version: string; aiKey: string };
this._telemetryReporter = new ExperimentationTelemetry(context, new TelemetryReporter(name, version, aiKey));
const { aiKey } = context.extension.packageJSON as { name: string; version: string; aiKey: string };
this._telemetryReporter = new ExperimentationTelemetry(context, new TelemetryReporter(aiKey));
const type = ghesUri ? AuthProviderType.githubEnterprise : AuthProviderType.github;