You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css] Need to remove old CSS grid syntax and add new syntax #13595
Reacted by Curtis Carter, Charles Roper, schnesim, Nathan Ridley, Kai Burjack, Arnaud Mouronval, Sven, Benjamin Lupton, Frank Spin, Frank Polasek Dugan III and 4 more
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
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
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?
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?
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.
Activity
[-]Need to remove old CSS grid syntax and add new syntax for autocomplete[/-][+]Need to remove old CSS grid syntax and add new syntax [/+][-]Need to remove old CSS grid syntax and add new syntax [/-][+][css] Need to remove old CSS grid syntax and add new syntax [/+]lannonbr commentedon Apr 11, 2017
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?
aeschli commentedon Apr 12, 2017
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
hamer86 commentedon May 12, 2017
What is the status of this. I'm really starting to use CSS Grid and i can't do it in my favorite editor :(
lannonbr commentedon May 12, 2017
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.
lannonbr commentedon May 16, 2017
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?
lannonbr commentedon May 16, 2017
Also, how would you recommend testing the addition before doing a PR?
aeschli commentedon May 16, 2017
You can make the manual change, but there's the risk of the work getting lost once we update.
aeschli commentedon May 16, 2017
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.
aeschli commentedon May 16, 2017
We have some unit tests for completion that also test the data. But I admit that's covering only a few cases.
lannonbr commentedon May 16, 2017
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?
aeschli commentedon May 16, 2017
Yes, that's it for the quick fix.
lannonbr commentedon May 16, 2017
Okay, going to commit and then push the PR
lannonbr commentedon May 24, 2017
Martin Aeschlimann (@aeschli) Any updates on reviewing my PR?