Skip to content

useNonAdjustedEndPosition when replacing import node #22517

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

Merged
2 commits merged into from
Mar 14, 2018

Conversation

ghost
Copy link

@ghost ghost commented Mar 13, 2018

Fixes #22337
Adjusting the end position eats up the newline after it, which we don't want as it causes the imports to all end up on the same line.

@ghost ghost requested a review from amcasey March 13, 2018 21:57
@amcasey
Copy link
Member

amcasey commented Mar 14, 2018

But retain the adjusted start position? Consider adding a test in which the original node is surrounded by comments.

@ghost ghost merged commit e7ce3f9 into master Mar 14, 2018
@ghost ghost deleted the useNonAdjustedEndPosition branch March 14, 2018 18:46
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This pull request was closed.
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.

1 participant