Skip to content

useNonAdjustedEndPosition when replacing import node#22517

Merged
2 commits merged into
masterfrom
useNonAdjustedEndPosition
Mar 14, 2018
Merged

useNonAdjustedEndPosition when replacing import node#22517
2 commits merged into
masterfrom
useNonAdjustedEndPosition

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown
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