palantir / palantir-java-format

A modern, lambda-friendly, 120 character Java formatter.
Apache License 2.0
403 stars 43 forks source link

Move the plugin to the FormattingService & ImportOptimizer APIs #1078

Closed crogoz closed 2 months ago

crogoz commented 2 months ago

Before this PR

IntelliJ 2024.1 stops formatting via palantir-java-format when you press the format shortcut key or save (if formatting on actions on save is enabled).

After this PR

Similar to this google-java-format commit, we move to the new FormattingService and ImportOptimizer apis rather than doing the replacement of CodeStyleManager that we used to do.

Fixes #1068.

Possible downsides?

CRogers commented 2 months ago

changelog bot?

CRogers commented 2 months ago

:+1:

crogoz commented 2 months ago

👍

CRogers commented 2 months ago

:+1:

felixdesouza commented 2 months ago

👍

svc-autorelease commented 2 months ago

Released 2.44.0

UpperLevel-zz commented 2 months ago

I'm using version 2.46.0 and the problem still occurres. My intelliJ version is 2024.1.1. The buildnumber is #IU-241.15989.150. Anyone else has the same problem