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

Add a timeout for downloading razor telemetry #6622

Merged
merged 2 commits into from
Nov 11, 2023

Conversation

davidwengier
Copy link
Contributor

Fixes #6547

The issue these users are having is to do with their proxy settings in VS Code, and is happening inside where we already have error handling for the download, so it seems like node is just stuck downloading. The only recourse I could work out was a timeout, so at least we're not blocking users forever.

@davidwengier davidwengier requested review from a team as code owners November 2, 2023 04:14
'.razortelemetry',
'Microsoft.VisualStudio.DevKit.Razor.dll'
);
if (await util.fileExists(telemetryExtensionPath)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved this all out just because of the await

@davidwengier
Copy link
Contributor Author

Boy this UI stuff is easier in VS Code than in VS 😛

this.eventStream.post(new InstallationSuccess());
return true;
}
await vscode.window.withProgress(
Copy link
Member

Choose a reason for hiding this comment

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

🎉

@davidwengier
Copy link
Contributor Author

Who wrote that annoying razor formatting test anyway....

@davidwengier davidwengier merged commit 87bcff0 into dotnet:main Nov 11, 2023
13 checks passed
@davidwengier davidwengier deleted the RazorTelemetryDownloadTimeout branch November 11, 2023 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants