-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
CSSnext & preCSS Support #3907
Comments
Yeah, we would really like this too... Obviously it makes no sense to talk about adding syntax support for PostCSS, as that is nothing more than a task runner and could theoretically support any syntax, but it would be really great to have an option to at least enable support for the subset of future css syntax supported by CSSNext (http://cssnext.io/features). Our design/css/html guys work in Sublime Text and they absolutely insist on using PostCSS with CSSNext - which is fine, except that the mess of red squiggles the rest of us see in VS Code is really getting in the way of collaboration. Is this something you would consider supporting in the near future? |
@thomas-darling Does it help to disable the built-in CSS validation using |
The former will certainly help but the highlighting is off too. I see this as the domain for a community extension. |
Has there been any progress on this front by chance? |
I need proper cssnext support 👍 |
Adding a user setting that allows you to enable future CSS spec validation, would be a helpful and logical way to support CSSNext. |
Assigning to @aeschli, there are some recent CSS improvements. |
Recently I added support for variables, for @apply and custom property to the base CSS support. In general we only adopt css specs when they become widely adopted and supported by all the major browsers. There are a lot of proposed specs out there. You can imagine that it's takes a lot of time to study, adopt the parser and get it right. Please file specific requests for features to support. The current issue (add support for CSSNext and preCSS) is too broad to take action on. Also, if you don't want to wait: Write an extension that adds the missing features. Or make a pull requests. https://github.com/Microsoft/vscode-css-languageservice is the repository for the css language support. |
using the you can then associate "files.associations": {
"*.css": "postcss"
} Note: this method will completely disable IntelliSense & validation, as |
As mentioned, please file specific issues if you want the css support to catch up on a new css spec. |
Please add CSSnext & preCSS Support
When using cssnext in combination with precss a lot of warning are given concerning expected braces or semicolons when nesting. This leads to a lot of red stripes and color theme being completely off.
Configuration is:
CSSnext (through PostCSS)
The text was updated successfully, but these errors were encountered: