Open zhengxiaoyao0716 opened 6 years ago
Actually I'm not sure there is any support for cssnext functionality in this extension.
For example, media query ranges is not support either (see attached screenshot). Also, I tested "custom selectors" as well, and they receive linter error warnings. So maybe this issue should be renamed to something like Add Support for cssnext?
@onetrev Yes, u r right. I renamed it.
Perfect, thanks! Also keep your eye on this other project, and if possible support the project too, because the developer is looking to add PostCSS support! PostCSS is becoming really popular, totally is the future, but there is really nothing that fully does the job yet in VS Code. :(
Thanks too! I'm also looking for a plugin in VSCode for PostCSS.
In the interim, for anyone that finds seeing linter errors in their PostCSS files annoying, simply add this setting from this extension to your User Settings:
"postcss.validate": false
hey, sorry for the delay with answer, detailed explanation on this issue you cam be found here you can disable validation as @onetrev mentioned
Good news @zhengxiaoyao0716 -- support for cssnext is planned for the new round of updates for VS Code. So that's a big step forward. More details here in the CSS/HTML section: https://github.com/Microsoft/vscode/issues/41061
It still would be huge to have PostCSS support in Intellisense, so things like variables can be found across files, but this is a nice step. Hopefully @mrmlnc is still planning on building that.
@onetrev thank you~
FYI CSSnext is now deprecated. The next PostCSS library (which uses the same syntax for CSS variables is :https://preset-env.cssdb.org/
http://cssnext.io/features/#custom-properties-set-apply