windicss / windicss-intellisense

Intelligent WindiCSS tooling for VS Code
https://marketplace.visualstudio.com/items?itemName=voorjaar.windicss-intellisense
MIT License
194 stars 16 forks source link

Add support for rescript #246

Closed jamessouth closed 3 years ago

jamessouth commented 3 years ago

Hello, can support for rescript (.res files) be added? I tried the includeLanguages option

"windicss.includeLanguages": {
     "res": "html"
}

including with the type and pattern keys, but it's not working. Here is the TW PR.

Thank you!

alexanderniebuhr commented 3 years ago

Have you checked that 'res' is the language identifier for rescript

alexanderniebuhr commented 3 years ago

try v0.21.3

jamessouth commented 3 years ago

This works on v0.21.3:

"windicss.includeLanguages": {
        "rescript": "html"
}

Thank you!

XiNiHa commented 3 years ago

That config is not working for me (v0.21.4) I'm pretty sure that you're also using @rescript/react. Is there any additional info needed to investigate the issue? Edit: The extension was not working at all, everything works well after reinstall