-
Notifications
You must be signed in to change notification settings - Fork 394
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
Incorrect validation on LWC Meta XML for lightning__RecordPage targeted objects #3503
Comments
This issue has been linked to a new work item: W-9762407 |
@greg-amato - it looks like the error is due to the I'm not sure if this was intended, but according to the js-meta.xsd file (see below) the
salesforcedx-vscode/packages/salesforcedx-vscode-lwc/resources/static/js-meta.xsd Lines 408 to 419 in 87e0386
|
forcedotcom/lightning-language-server#446 is a duplicate of this ticket. |
Summary
When determining the configuration for a LWC that targets a record page "lightning_RecordPage", you can restrict the target objects by specifying tag, followed by the allowable objects.
However, the VSCode extension is incorrectly flagging
<objects>
as an invalid element name. Note: The code will still deploy correctly.See reference documentation here
"The targetConfig tag supports the property, propertyType, objects, and supportedFormFactors subtags."
Steps To Reproduce:
Expected result
No code validation flagged for error.
Actual result
Additional information
Screenshot of error
![Screen Shot 2021-08-15 at 11 25 37 AM](https://user-images.githubusercontent.com/20950794/129484568-92f20021-00bb-4720-ab4a-9a5d903da377.png)
Screenshot of example config that should validate correctly
![Screen Shot 2021-08-15 at 11 25 12 AM](https://user-images.githubusercontent.com/20950794/129484574-9ae94422-7a45-43b2-abc1-b93784891614.png)
Salesforce Extension Version in VS Code: 52.9.1
SFDX CLI Version: sfdx-cli/7.112.1 darwin-x64 node-v14.17.4
OS and version: MacOS 11.5.1
The text was updated successfully, but these errors were encountered: