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

Make organize imports format consistent with scalariform #918

Merged
merged 1 commit into from Apr 1, 2015

Conversation

misto
Copy link
Member

@misto misto commented Apr 1, 2015

We used to pass the IDE's SpaceInsideParentheses setting to scala-refactoring to control the spaces inside the braces of multiple imports, like this:

import a.b.{ c, d }

Unfortunately, in scalariform SpaceInsideParentheses only affects the space around regular parenthesis, and there is no setting for the spaces in imports. So to make the code generated by scala-refactoring consistent with the formatting of scalariform, we always print a space inside multiple imports.

Fixes scala-ide/scala-refactoring#81.

We used to pass the IDE's SpaceInsideParentheses setting to scala-refactoring to control the spaces inside the braces of multiple imports, like this:

import a.b.{ c, d }

Unfortunately, in scalariform SpaceInsideParentheses only affects the space around regular parenthesis, and there is no setting for the spaces in imports. So to make the code generated by scala-refactoring consistent with the formatting of scalariform, we always print a space inside multiple imports.

Fixes scala-ide/scala-refactoring#81.
@ghprb-bot
Copy link

Can one of the admins verify this patch?

@ghprb-bot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://jenkins.scala-ide.org:8496/jenkins//job/ghprb-scala-ide-multi-conf/39/
Test PASSed.

@kiritsuku
Copy link
Member

It seems the bot is in a hurry.

@kiritsuku
Copy link
Member

LGTM

kiritsuku added a commit that referenced this pull request Apr 1, 2015
…rmatting

Make organize imports format consistent with scalariform
@kiritsuku kiritsuku merged commit f782c9d into master Apr 1, 2015
@kiritsuku kiritsuku deleted the organize-imports-consistent-formatting branch April 1, 2015 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants