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

Remove obsolete settings checks for Blazor debugging #4964

Merged
merged 2 commits into from
Dec 19, 2021

Conversation

winstliu
Copy link
Contributor

The extension currently displays false positive prompts that "Additional setup is required to debug Blazor WebAssembly applications" because it's looking for configuration settings that no longer exist. Remove them all, and in the process, streamline the check to only look for the existence of the companion extension.

Details

The extension currently determines if a Blazor workspace is ready for Blazor debugging if:

  1. The Blazor companion extension is installed, AND
  2. The debug.javascript.usePreview setting is true, OR
  3. The debug.node.useV3 AND debug.chrome.useV3 settings are true.

However,

The extension currently sets a minimum VS Code requirement of 1.61.0, meaning that those settings are guaranteed to not control anything. Thus, by removing those checks, we can see that the only remaining check is for the Blazor companion extension, and the code can be greatly simplified to only look for that.

Oh yeah, and the corresponding documentation has already been updated to remove the parts that talk about enabling the debugger preview, so anyone who clicks on the "Learn more" prompt isn't going to get the information they need anyway.

The necessary JavaScript debugger configurations are now the default,
and cannot be disabled.
@winstliu winstliu changed the title Remove debug preview checks for Blazor Remove obsolete settings checks for Blazor debugging Dec 19, 2021
@JoeRobich JoeRobich merged commit 5366059 into dotnet:master Dec 19, 2021
@JoeRobich
Copy link
Member

@50Wliu Thanks!

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.

2 participants