Skip to content

[css] Need to remove old CSS grid syntax and add new syntax  #13595

Closed

Description

  • VSCode Version: Version 1.6.0 (1.6.0)
  • OS Version:

Steps to Reproduce:

  1. type some CSS grid properties.
  2. look at suggestions and look at linter

Linter is displaying "unknown property" for valid CSS grid syntax. Autocomplete suggestions only show old syntax( which should be removed)

You can find the syntax here:
https://css-tricks.com/snippets/css/complete-guide-grid/
or
http://www.w3.org/TR/css3-grid-layout/

Activity

  1. changed the title [-]Need to remove old CSS grid syntax and add new syntax for autocomplete[/-] [+]Need to remove old CSS grid syntax and add new syntax [/+] on Oct 12, 2016
  2. added
    css-less-scss
    feature-request
    on Oct 14, 2016
  3. changed the title [-]Need to remove old CSS grid syntax and add new syntax [/-] [+][css] Need to remove old CSS grid syntax and add new syntax [/+] on Oct 14, 2016
  4. lannonbr commented on Apr 11, 2017

    @lannonbr
    Contributor

    I am interested in helping out with this. Would updating the CSS extension (and related extensions, i.e. sass, less) JSON specifications be the only requirement, or are there any other files to look into?

  5. aeschli commented on Apr 12, 2017

    @aeschli
    Contributor

    Thanks for offering help. The database of properties used for the css code completions is in https://github.com/Microsoft/vscode-css-languageservice/blob/master/build/css-schema.xml which gets converted to browser.js
    But manually adding data isn't the preferred way. All the underlying data is now publicly available at http://schemastore.org/css/. So the best way would be to change the script to get the data from there. Alternatively we want to look into getting the data from the MDN team at https://github.com/mdn/data/tree/master/css

  6. hamer86 commented on May 12, 2017

    @hamer86

    What is the status of this. I'm really starting to use CSS Grid and i can't do it in my favorite editor :(

  7. lannonbr commented on May 12, 2017

    @lannonbr
    Contributor

    I've been busy with University work as the end of the semester usually gets for me, but I can now begin looking at since the semester just ended.

  8. lannonbr commented on May 16, 2017

    @lannonbr
    Contributor

    Martin Aeschlimann (@aeschli) Would it be fine if I manually inserted the schema for grid-layout for now and then in another PR we could work on getting the data from one of those sources?

  9. lannonbr commented on May 16, 2017

    @lannonbr
    Contributor

    Also, how would you recommend testing the addition before doing a PR?

  10. aeschli commented on May 16, 2017

    @aeschli
    Contributor

    You can make the manual change, but there's the risk of the work getting lost once we update.

  11. aeschli commented on May 16, 2017

    @aeschli
    Contributor

    Yes, testing is difficult here given that the new input data is in a different form.
    I'd try to make the output (the browser.js file) as similar as possible (same order of fields) so we can see from a diff that we are on the right track.

  12. aeschli commented on May 16, 2017

    @aeschli
    Contributor

    We have some unit tests for completion that also test the data. But I admit that's covering only a few cases.

  13. lannonbr commented on May 16, 2017

    @lannonbr
    Contributor

    So I'm reading through the schema and it seems that a decent amount of the content is already there starting here: https://github.com/Microsoft/vscode-css-languageservice/blob/master/build/css-schema.xml#L3160. I have been updating the browsers attribute to include the browsers that support CSS Grid and I've run the generate_browserjs.js which has included them into the browsers.js file.

    Is there something I am not seeing or is that basically all that I need to do?

  14. aeschli commented on May 16, 2017

    @aeschli
    Contributor

    Yes, that's it for the quick fix.

  15. lannonbr commented on May 16, 2017

    @lannonbr
    Contributor

    Okay, going to commit and then push the PR

  16. lannonbr commented on May 24, 2017

    @lannonbr
    Contributor

    Martin Aeschlimann (@aeschli) Any updates on reviewing my PR?

  17. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

css-less-scssfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions