Skip to content

Conversation

@andreweacott
Copy link

@andreweacott andreweacott commented Nov 6, 2025

Before this PR

The core formatter supports a 'skip reflowing long strings' option but this couldn't be selected in the IntelliJ plugin settings.

After this PR

The plugin settings UI now has an option to skip reflowing long strings (which is respected by formatters).

image

Possible downsides?

  • Java 15 and above only - the setting is ignored for earlier JVMs due to the way the in-process formatter is instantiated.

Related Issues

Address Issue #1452

@palantirtech
Copy link
Member

Thanks for your interest in palantir/palantir-java-format, @andreweacott! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app
Copy link

changelog-app bot commented Nov 6, 2025

Successfully generated changelog entry!

Entry generated via PR title

To modify this entry, edit PR title using proper format.


📋Changelog Preview

✨ Features

  • Allow setting 'skip reflowing long strings' in IntelliJ plugin (#1462)

Add overloaded constructors to BootstrappingFormatterService and NativeImageFormatterService that accept the old parameter lists without JavaFormatterOptions. These new constructors use default formatter options internally, maintaining backward compatibility while allowing new code to pass custom options.

This eliminates the API/ABI break detected by revapi while keeping the feature support for configuring the skip-reflowing-long-strings option in the IntelliJ plugin.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

2 participants