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

Set o.e.j.c.formatter.indent_switchstatements_compare_to_switch=true by default #1927

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Oct 27, 2021

Fixes redhat-developer/vscode-java#2185

Signed-off-by: Snjezana Peco snjezana.peco@redhat.com

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Would it be possible to rename getJavaLSDefaultFormatterSettings to getCombinedDefaultFormatterSettings and create a method getJavaLSDefaultFormatterSettings that just returns a map of the (4) formatter settings we intend to override.

This way the code in PreferenceManager.initializeJavaCoreOptions(..) can just call it instead of having to copy values in 2 separate locations.

@snjeza
Copy link
Contributor Author

snjeza commented Oct 28, 2021

@rgrunber I have updated the PR.

…by default

Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@snjeza snjeza merged commit 120c45a into eclipse-jdtls:master Oct 28, 2021
@rgrunber rgrunber added this to the Mid November milestone Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[formatter] Set org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true by default
2 participants