-
Notifications
You must be signed in to change notification settings - Fork 406
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
Aura Components Markup Linter errors on an attribute with value "{# ... }" #950
Comments
This is a known issue in the Aura LSP. It is being worked now. I don't have an exact ETA, but it should be sometime in the next few months. |
Thanks @ntotten. Is there something that I can do to disable the error messages? Something like this: // tslint:disable-next-line:no-console |
@eltoroit The only thing that you can do is change the language type to either text or XML. The bad thing is that you will disable all the other HTML features. |
@ntotten that could be a good solution, thanks. Changing to XML could be a good idea since the Lightning Aura Components are XML files with some HTML inside. What would I lose if I treat this file as XML? |
The big thing you lose is that you don't get code completion on standard HTML components (i.e. |
Thanks |
@ntotten, Thank you for linking my issue back to an existing issue. Any updates on the ETA? |
The same errors (as mentioned in the issue additional info) still persist in Salesforce extension pack version 46.13.0 (dated September 5, 2019) |
This is a limitation of the HTML language in VS Code. It is related to microsoft/vscode#67871 |
This issue has been linked to a new work item: W-7432033 |
Summary
This code
Steps To Reproduce:
<div style="{# 'background-image:url(' + v.url+ ')'}">...</div>
Expected result
Actual result
Linter is complaining
Additional information
These are the errors I get back
VS Code Version: Version 1.28.2 (1.28.2)
SFDX CLI Version: sfdx-cli/6.38.0-0d66175ccf (darwin-x64) node-v8.9.4
OS and version: Mac OSX High Sierra v. 10.13.6 (17G65)
The text was updated successfully, but these errors were encountered: