Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Initial check-in for supporting telemetry in vscode #6123

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename env var
  • Loading branch information
RodgeFu committed Feb 27, 2025
commit fab9abc080c95814d26b58ffb1ed95eaaa52244e
6 changes: 3 additions & 3 deletions packages/typespec-vscode/src/telemetry/telemetry-client.ts
Original file line number Diff line number Diff line change
@@ -45,13 +45,13 @@ class TelemetryClient {
let key: string | undefined = pkgJson.telemetryKey;
if (!isValidKey(key)) {
logger.debug(
"Telemetry key is not provided in package.json, try to use environment variable VSCODE_TELEMETRY_KEY",
"Telemetry key is not provided in package.json, try to use environment variable TYPESPEC_VSCODE_TELEMETRY_KEY",
);
key = process.env.VSCODE_TELEMETRY_KEY;
key = process.env.TYPESPEC_VSCODE_TELEMETRY_KEY;
}
if (!isValidKey(key)) {
logger.debug(
"Telemetry key is not provided in package.json or environment variable VSCODE_TELEMETRY_KEY",
"Telemetry key is not provided in package.json or environment variable TYPESPEC_VSCODE_TELEMETRY_KEY",
);
return undefined;
}
Loading
Oops, something went wrong.