[Feature]: VSCode extension: better feedback for error in playwright.config #34384
Description
🚀 Feature Request
If there are errors in playwright.config
(for me I had a bad path for a reporter) playwright fails to run. When running npx playwright
you get decent feedback but in the "Testing" toolbar, it just says "No tests have been found in this workspace yet. [Install Additional Test Extensions]". Perhaps the extension is not allowed to report anything better when it errors but it would be nice to see.
Having an "Output" for the extension would be helpful as well. I looked and didn't see any "Output" for "Playwright" in the console drawer.
Example
At a minimum: "Playwright encountered an error"
Better: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'"
Best: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'" [button to take you to terminal to see full errors]
Motivation
I spent a good deal of time trying to figure this bug out, the wording made me think there was a problem with the extension, not playwright itself.