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

[Redesign] Add telemetry #8701

Merged
merged 3 commits into from
Jul 26, 2021
Merged

[Redesign] Add telemetry #8701

merged 3 commits into from
Jul 26, 2021

Conversation

@loic-sharma loic-sharma requested a review from a team as a code owner July 24, 2021 00:18
Copy link
Contributor

@dannyjdev dannyjdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!.

@@ -93,8 +101,14 @@

// Make sure we save the user's preferred package manager to localStorage.
if (storage) {
storage.setItem(packageManagerStorageKey, currentPackageManagerId);
storage.setItem(packageManagerStorageKey, newPackageManagerId);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A side effect of calling updatePackageManager is that the currentPackageManagerId is set to newPackageManagerId. So this code worked as expected, it's just I think it's a little clearer if we continue to use newPackageManagerId here.

@loic-sharma loic-sharma merged commit 0fde8b0 into dev Jul 26, 2021
@loic-sharma loic-sharma deleted the loshar-redesign-telemetry branch July 26, 2021 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants