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

Fix formatter's processChildNodes #48921

Merged
merged 1 commit into from
May 2, 2022
Merged

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented May 2, 2022

processChildNodes needs to skip processing when the node array is outside the target range, just like processChildNode already does for a single node.

The new code is copied from processChildNode and skipToEndOf changes to allow Node | NodeArray.

Fixes #48006

processChildNodes needs to skip processing when the node array is
outside the target range, just like processChildNode already does for a
single node.

Fixes #48006
@sandersn sandersn requested a review from gabritto May 2, 2022 19:22
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 2, 2022
@sandersn sandersn assigned andrewbranch and unassigned sandersn May 2, 2022
@sandersn sandersn requested a review from andrewbranch May 2, 2022 19:22
@sandersn sandersn merged commit e73d755 into main May 2, 2022
@sandersn sandersn deleted the fix-formatter-processChildNodes branch May 2, 2022 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paste into editor with format on paste removes pasted word
4 participants