Skip to content

Conversation

@Srijan0101
Copy link

@Srijan0101 Srijan0101 commented Dec 9, 2025

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

- Enhanced CompilerError and diagnostic structures to include an optional URL property.
- Updated related functions to handle the new URL field, ensuring it is preserved during error generation and normalization.
- Added tests to verify the inclusion of URL in various error scenarios.
@Srijan0101 Srijan0101 requested a review from a team as a code owner December 9, 2025 13:50
@salesforce-cla
Copy link

salesforce-cla bot commented Dec 9, 2025

Thanks for the contribution! Before we can merge this, we need @Srijan0101 to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant