tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

CSS class autocompletion #60

Closed headphonejack closed 4 years ago

headphonejack commented 5 years ago

HTML templates detect and offer autocompletion for css classes in your project:

image

Svelte files don't do the same, do we know the limitations to doing this?

image

tomblachut commented 5 years ago

Hi! From the perspective of IDE Svelte is another language so everything need to be enabled separately. There is some extension point missing, from top of my head I guess something in css namespace or CompletionContributor. If you or anyone else wants to tackle this good starting point is to look at Angular or Vue plugin. I can also make some further research. Otherwise priority for me is parsing attributes and handling false-negatives like autosubscription syntax.

AleksandrSl commented 4 years ago

Hi! If nobody mind I can try to tackle this

tomblachut commented 4 years ago

@AleksandrSl that would be great!

tomblachut commented 4 years ago

Fixed in #70