lwc icon indicating copy to clipboard operation
lwc copied to clipboard

feat: add URL property to CompilerError and CompilerDiagnostic

Open Srijan0101 opened this issue 2 weeks ago • 1 comments

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

Srijan0101 avatar Dec 09 '25 13:12 Srijan0101

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

salesforce-cla[bot] avatar Dec 09 '25 13:12 salesforce-cla[bot]

image cc: @abdulsattar

Srijan0101 avatar Dec 12 '25 05:12 Srijan0101

The three failing tests are due to a regression fixed in #5640. If you update your PR then they should be resolved.

wjhsf avatar Dec 12 '25 15:12 wjhsf

/nucleus ignore --reason "still broken"

wjhsf avatar Dec 12 '25 16:12 wjhsf

⚠ The test stage has not been run for this PR. Nothing to ignore.

salesforce-nucleus[bot] avatar Dec 12 '25 16:12 salesforce-nucleus[bot]