-
Notifications
You must be signed in to change notification settings - Fork 100
fix: show config loading error #628
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
Conversation
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.
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- media/common.css: Language not supported
dgozman
left a comment
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.
Looks kinda ugly. Can we show something like Unable to load [playwright.config.ts](link to the error location) instead?
mxschmitt
left a comment
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.
Instead of creating a new UI for showing config loading errors I'd instead try to redirect to the problem tab, this is what VSCode uses as their native experience. Maybe we can even focus to the actual Problem which we added or focus to the location of where the issue occurred and then VSCode will show it as red. I think marking it as red in the WebView is a good idea but I'd resist from showing the error there.
src/settingsView.script.ts
Outdated
| continue; | ||
|
|
||
| const errorParagraph = document.createElement('p'); | ||
| errorParagraph.textContent = 'Unable to load '; |
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.
Since the error location might be in a different file, what about the following layout:
Config loading errors:
- <foo.ts:17>
- <bar.ts:42>
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.
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.
Yeah, something along these lines.
|
had to fix a test 😩 |
This reverts commit 5c98353.


Resolves microsoft/playwright#35544
Screen.Recording.2025-04-17.at.13.24.26.mov