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

CSSnext & preCSS Support #3907

Closed
DenisValcke opened this issue Mar 9, 2016 · 11 comments
Closed

CSSnext & preCSS Support #3907

DenisValcke opened this issue Mar 9, 2016 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@DenisValcke
Copy link

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)

  • PreCSS for Sass-like nesting

schermafbeelding 2016-03-09 om 11 08 21

@egamma egamma self-assigned this Mar 9, 2016
@thomas-darling
Copy link

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?

@egamma
Copy link
Member

egamma commented Apr 7, 2016

@thomas-darling Does it help to disable the built-in CSS validation using "css.validate": false and then use one of the CSS linter extensions, e.g., https://marketplace.visualstudio.com/items?itemName=shinnn.stylelint?

@texastoland
Copy link

texastoland commented May 2, 2016

The former will certainly help but the highlighting is off too. I see this as the domain for a community extension.

@FAQinghere
Copy link

Has there been any progress on this front by chance?

@texastoland
Copy link

I used https://marketplace.visualstudio.com/items?itemName=ricard.PostCSS.

@japboy
Copy link

japboy commented Nov 1, 2016

I need proper cssnext support 👍

@watlandc
Copy link

watlandc commented Nov 3, 2016

Adding a user setting that allows you to enable future CSS spec validation, would be a helpful and logical way to support CSSNext.

@egamma egamma assigned aeschli and unassigned egamma Dec 12, 2016
@egamma
Copy link
Member

egamma commented Dec 12, 2016

Assigning to @aeschli, there are some recent CSS improvements.

@aeschli
Copy link
Contributor

aeschli commented Dec 13, 2016

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.

@ahmadnassri
Copy link

ahmadnassri commented Jan 14, 2017

using the ricard.PostCSS plugin provides correct syntax highlighting for .pcss, .postcss files.

you can then associate .css files to be treated as .pcss files in your settings, and you'll get the correct syntax highlighting:

"files.associations": {
  "*.css": "postcss"
}

Note: this method will completely disable IntelliSense & validation, as postcss is not a known target.

@aeschli aeschli added the feature-request Request for new features or functionality label Feb 7, 2017
@aeschli
Copy link
Contributor

aeschli commented Feb 7, 2017

As mentioned, please file specific issues if you want the css support to catch up on a new css spec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

9 participants