feat: add URL property to CompilerError and CompilerDiagnostic
Details
This PR introduces URL property from the LWCErrorInfo to CompilerDiagnostic and CompilerError so that the compiler can show LWC error docs that we are hosting in https://lwc.dev/guide/error_codes in the current and SARIF diagnostics. This approach was initially discussed here: link
Does this pull request introduce a breaking change?
- 😮💨 No, it does not introduce a breaking change.
Does this pull request introduce an observable change?
- 🔬 Yes, it does include an observable change.
Once this PR is merged, the users will be able to access 'url' property in the compiler diagnostics along with code, message and other already accessible CompilerDiagnostic properties.
GUS work item
W-20469461
Thanks for the contribution! Before we can merge this, we need @Srijan0101 to sign the Salesforce Inc. Contributor License Agreement.
The three failing tests are due to a regression fixed in #5640. If you update your PR then they should be resolved.
/nucleus ignore --reason "still broken"
⚠ The test stage has not been run for this PR. Nothing to ignore.