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

Adopt Better-Less grammar #197557

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Adopt Better-Less grammar #197557

merged 1 commit into from
Nov 7, 2023

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Nov 6, 2023

Fixes #171239

@alexr00 alexr00 requested a review from aeschli November 6, 2023 15:14
@alexr00 alexr00 self-assigned this Nov 6, 2023
@alexr00
Copy link
Member Author

alexr00 commented Nov 6, 2023

@aeschli, this new grammar fixes a couple issues and will be maintained going forward. However, it does require a few updates to themes to keep most of the colors the same, which means that themes contributed by extensions may also require updates. Do you think these theme changes are to much?

I intend to keep this grammar in insiders for 2 releases before releasing to stable.

@vscodenpa vscodenpa added this to the November 2023 milestone Nov 6, 2023
@aeschli
Copy link
Contributor

aeschli commented Nov 7, 2023

Looks good to me!

@alexr00 alexr00 enabled auto-merge (squash) November 7, 2023 16:12
@alexr00
Copy link
Member Author

alexr00 commented Nov 7, 2023

@aeschli great, thanks for taking a look!

@alexr00
Copy link
Member Author

alexr00 commented Nov 7, 2023

@radium-v, just a heads up that this is going in! I'll keep it in VS Code insiders until ~February.

Comment on lines 313 to +315
"variable.css",
"variable.scss",
"variable.other.less",
"source.css.less variable.other",
Copy link
Contributor

@aeschli aeschli Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we can now merge the 3 lines with:

Suggested change
"variable.css",
"variable.scss",
"variable.other.less",
"source.css.less variable.other",
"variable.css",
"variable.scss",
"source.css.less variable.other",

I ran the tests on that and there's a change in css coloring in that variable.parameter.url.css now also gets the variable color. IMO that's the correct thing to do.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created #197657 for that change

@alexr00 alexr00 merged commit ce40e7c into main Nov 7, 2023
6 checks passed
@alexr00 alexr00 deleted the alexr00/issue171239 branch November 7, 2023 16:36
alexr00 added a commit that referenced this pull request Nov 24, 2023
xaxazak pushed a commit to xaxazak/vscode that referenced this pull request Nov 24, 2023
* Revert "merge theme rules for css/less/scss variables (microsoft#197657)"

This reverts commit cc08867.

* Revert "Adopt Better-Less grammar (microsoft#197557)"

This reverts commit ce40e7c.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adopting a new Less grammar
3 participants