Skip to content
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

lit-html support inside "*.ts" #239

Closed
qwabra opened this issue Apr 16, 2020 · 1 comment · May be fixed by #245
Closed

lit-html support inside "*.ts" #239

qwabra opened this issue Apr 16, 2020 · 1 comment · May be fixed by #245

Comments

@qwabra
Copy link

qwabra commented Apr 16, 2020

plz, add support for *.ts (inside .tsx it's ok)

https://lit-html.polymer-project.org/

import {html, render} from 'lit-html';

// A lit-html template uses the `html` template tag:
let sayHello = (name) => html`<h1>Hello ${name}</h1>`;

// It's rendered with the `render()` function:
render(sayHello('World'), document.body);

// And re-renders only update the data that changed, without VDOM diffing!
render(sayHello('Everyone'), document.body);
@dansebcar
Copy link

For what it's worth, with the 1.20 version of the extension it's now possible to do this by setting

"html-css-class-completion.JavaScriptLanguages": ["typescript"],

@zignd zignd closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants