Skip to content

Commit 95485b2

Browse files
authored
Removing Feature.AD_HOC_FORMATTING from PalantirJavaFormatFormattingService (palantir#1083)
Remove AD_HOC_FORMATTING
1 parent 469e2e9 commit 95485b2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
type: fix
2+
fix:
3+
description: Fixes bug where generated code or automated refactoring is formatted
4+
incorrectly by removing AD_HOC_FORMATTING
5+
links:
6+
- https://github.com/palantir/palantir-java-format/pull/1083

‎idea-plugin/src/main/java/com/palantir/javaformat/intellij/PalantirJavaFormatFormattingService.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected FormattingTask createFormattingTask(@NotNull AsyncFormattingRequest re
6161

6262
@Override
6363
public @NotNull Set<Feature> getFeatures() {
64-
return Set.of(Feature.AD_HOC_FORMATTING, Feature.FORMAT_FRAGMENTS, Feature.OPTIMIZE_IMPORTS);
64+
return Set.of(Feature.FORMAT_FRAGMENTS, Feature.OPTIMIZE_IMPORTS);
6565
}
6666

6767
@Override

0 commit comments

Comments
 (0)