-
Notifications
You must be signed in to change notification settings - Fork 49
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
Stops optimizing imports via palantir-java-formatter #1089
Conversation
Generate changelog in
|
@@ -95,6 +96,7 @@ public void tearDown() throws Exception { | |||
} | |||
|
|||
@Test | |||
@Disabled("Disabled the import optimization via palantir-java-format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd delete these tests entirely.
@@ -61,7 +61,7 @@ protected FormattingTask createFormattingTask(@NotNull AsyncFormattingRequest re | |||
|
|||
@Override | |||
public @NotNull Set<Feature> getFeatures() { | |||
return Set.of(Feature.FORMAT_FRAGMENTS, Feature.OPTIMIZE_IMPORTS); | |||
return Set.of(Feature.FORMAT_FRAGMENTS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we return an empty set (or not override if it's set up like that) getImportOptimizers
?
…rmat into cr/no-optimize
Released 2.47.0 |
Before this PR
Optimizing imports via palantir-java-format is slow.
Previously (before switching to the new api: #1078), we would use Intelij's import optimizations (see: old implementation weren't overriding the optimizeImports implementation)
After this PR
We stopped doing the import optimization via the
palantir-java-format
. Now, it gets delegated to Intelij.==COMMIT_MSG==
Stops optimizing imports via palantir-java-formatter
==COMMIT_MSG==
Possible downsides?