Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for cssnext #18

Open
zhengxiaoyao0716 opened this issue Dec 22, 2017 · 9 comments
Open

Add Support for cssnext #18

zhengxiaoyao0716 opened this issue Dec 22, 2017 · 9 comments

Comments

@zhengxiaoyao0716
Copy link

http://cssnext.io/features/#custom-properties-set-apply
image

@onetrev
Copy link

onetrev commented Jan 2, 2018

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?

capture

@zhengxiaoyao0716 zhengxiaoyao0716 changed the title Not support css-next @apply syntax Add Support for cssnext Jan 2, 2018
@zhengxiaoyao0716
Copy link
Author

@onetrev Yes, u r right. I renamed it.

@onetrev
Copy link

onetrev commented Jan 2, 2018

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. :(

@zhengxiaoyao0716
Copy link
Author

Thanks too! I'm also looking for a plugin in VSCode for PostCSS.

@onetrev
Copy link

onetrev commented Jan 2, 2018

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

@MhMadHamster
Copy link
Owner

hey, sorry for the delay with answer, detailed explanation on this issue you cam be found here
you can disable validation as @onetrev mentioned

@onetrev
Copy link

onetrev commented Jan 22, 2018

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: microsoft/vscode#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.

@zhengxiaoyao0716
Copy link
Author

@onetrev thank you~

@mummybot
Copy link

mummybot commented Mar 4, 2019

FYI CSSnext is now deprecated. The next PostCSS library (which uses the same syntax for CSS variables is :https://preset-env.cssdb.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants