Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: merge attributes before passing them upstream #87

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

rzhao271
Copy link
Contributor

Ref downstream PR microsoft/vscode#185607

Emmet added some new object properties, but the upstream merging algorithm makes it so that if a user only defines some keys to customize, the other keys within that same property are erased.

This PR works around the issue by merging the properties with the upstream defaults, and then passing in that entire object upstream so that the default object gets overridden with the larger object.

@rzhao271 rzhao271 force-pushed the rzhao271/jsx-merge-fix branch from 45775b7 to 685da1e Compare June 22, 2023 17:28
@rzhao271 rzhao271 self-assigned this Jun 22, 2023
@rzhao271 rzhao271 added this to the June 2023 milestone Jun 22, 2023
@rzhao271 rzhao271 merged commit e2911e2 into main Jun 22, 2023
@rzhao271 rzhao271 deleted the rzhao271/jsx-merge-fix branch June 22, 2023 21:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants