runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
317 stars 36 forks source link

Autocomplete scoping issues in CSS #273

Open calebdwilliams opened 1 year ago

calebdwilliams commented 1 year ago

I'm using this plugin for Lit but also have a custom css template tag in a separate library I am working on. In general the syntax highlighting works great, however, the autocomplete/intellisense scoping in expressions ${} doesn't seem to be working.

For example, if I write the following

const something = css`
.whatever {
  background: ${ somethingThatShouldHaveIntellisense };
}`;

The intellisense doesn't kick in, whereas if I rename the template tag to csss it does. Is there a way to enable context switchin for autocomplete inside those expressions or is that a limitation of VS Code?

Thanks for all your work on this!