-
Notifications
You must be signed in to change notification settings - Fork 75
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
html formatting is not working #71
Comments
Please share details, such as example code (as text) |
here is a sample it happends when function params is over 1 row import {
LitElement, html, customElement, property
} from 'lit-element';
const myhtml = (something: {
text: string;
optional?: number
}) => {
return html`<div>${something.text}</div>`
}
@customElement('app-component')
export class AppComponent extends LitElement {
render() {
return html`
<div>
${myhtml(
{ text: 'cool' })}
</div>
`
}
} |
hmm Something like this: render() {
return html`
<div>
${myhtml( "text")}
</div>
`
} wil also make it fail, but not sure if this really have anything to do with this plugin really |
Adding prettier as default formater helped this issue. |
Noticed this as well, the default "vscode.typescript-language-features" doesn't work, not sure if there will be any fix to it in the future? |
html formatting, folding only works when |
It's not working for custom |
For me, no formatting was occurring until I had added these four settings.
I don't know which might have solved the problem... especially considering that now I've removed them all and the formatting still works! With one caveat -- the formatting still didn't work for the strings I had already created. I had to make new one's to see that it was working. |
html formatting is not working even if i enable formatting in the setting. Is there any bug are issue in formatting.
Is it same for everyone? Kindly help me in this.
Thanks
Subhash
The text was updated successfully, but these errors were encountered: