csstools / postcss-language

Support for modern and experimental CSS within Visual Studio Code
80 stars 11 forks source link

<style> tag support #6

Closed fehmi closed 2 years ago

fehmi commented 3 years ago

Description says it is supported but I can't get it to work.

image

mustofa-id commented 3 years ago

Same problem here.

davbtmx commented 3 years ago

Using <style lang="postcss"> it worked for me.

marblewraith commented 3 years ago

It's specifically the Volar extension, Vetur is more consistent. Notice the difference between main.pcss and the postcss embedded in the .vue file.

Volar

volar

Vetur

vetur

The author of Volar is aware of this, and referenced a completely different extension, language-postcss (see "Note" in the marketplace link):

The downside of language-postcss is, it does not support "Syntactical Looseness" as this one does.

fehmi commented 3 years ago

I made a feature request about it in VS Code repo.

https://github.com/microsoft/vscode/issues/113696