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 additional newlines being added when adding all missing imports #31782

Merged
merged 5 commits into from
Jan 2, 2019

Conversation

JoeRobich
Copy link
Member

@JoeRobich JoeRobich commented Dec 14, 2018

Before applying the missing imports remove any additional newlines that are introduced by add import wanting to separate the import from the rest of the code. This only occurs when there are no pre-existing imports.

Fixes #31768

@JoeRobich
Copy link
Member Author

@dotnet/roslyn-ide PTAL

@jinujoseph jinujoseph added this to the 16.0.P2 milestone Dec 15, 2018
Copy link
Member

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

💡 On the files tab, you can accept all (or a subset) of the suggested formatting changes as a batch.

@JoeRobich JoeRobich force-pushed the fix-addimports-newlines branch from d54ce3e to 6ae468f Compare December 22, 2018 23:07
@JoeRobich
Copy link
Member Author

@jinujoseph @vatsalyaagrawal for approval

@JoeRobich JoeRobich merged commit ff7a4ee into dotnet:master Jan 2, 2019
@JoeRobich JoeRobich deleted the fix-addimports-newlines branch January 14, 2019 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants