-
Notifications
You must be signed in to change notification settings - Fork 676
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
Fix Razor browser discovery issues on Mac and Linux #6269
Fix Razor browser discovery issues on Mac and Linux #6269
Conversation
showErrorMessage(vscode, vscode.l10n.t('Run and Debug: A valid browser is not installed')); | ||
showErrorMessage( | ||
vscode, | ||
vscode.l10n.t('Run and Debug: A valid browser is not installed. Please install Edge or Chrome.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated error message to explicitly say which browsers we support.
const chromeBrowserFinder = new ChromeBrowserFinder(process.env, promises, null); | ||
const chromeInstallations = await chromeBrowserFinder.findAll(); | ||
if (chromeInstallations.length > 0) { | ||
// favoring Edge if multiple valid options are installed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought we should re-order browser priority so that we favor Edge over Chrome (since we're Microsoft 😄). Let me know if anyone has other thoughts.
Fixes
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1842267/ and
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1865790/
Marked as dupes but they were actually two separate issues:
@vscode/js-debug-browsers
, which we use to determine which browsers the user has installed, expected anexeca
object to be passed into one of their methods we were calling. However, they only expected this on Macs (which is probably why this wasn't caught sooner).@vscode/js-debug-browsers
to a newer version, since the old version contained buggy code that resulted in one of the filed bugs above.Other notes: