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
fix bug in script
  • Loading branch information
RodgeFu committed Feb 27, 2025
commit 6ccec9bfda52ce08400ca6101b8704916f1055a6
2 changes: 1 addition & 1 deletion packages/typespec-vscode/scripts/update-telemetry-key.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ if (!newKey) {
const packageJson = JSON.parse(fs.readFileSync(targetPackageJsonFile, "utf8"));
const oldKey = packageJson.telemetryKey ?? "";
const keyToString = (key) =>
`'${key.substring(0, 8)}...${key.substring(Math.max(0, oldKey.length - 17))}'(length: ${key.length})`;
`'${key.substring(0, 8)}...${key.substring(Math.max(0, key.length - 17))}'(length: ${key.length})`;

console.log(`Updating telemetry key from ${keyToString(oldKey)} to ${keyToString(newKey)}`);
packageJson.telemetryKey = newKey;
Loading
Oops, something went wrong.