Skip to content

fix(engine): respect formatter line length in Refactorex actions#571

Merged
doorgan merged 1 commit intoelixir-lang:mainfrom
gpact:fix/refactorex-line-length
Apr 14, 2026
Merged

fix(engine): respect formatter line length in Refactorex actions#571
doorgan merged 1 commit intoelixir-lang:mainfrom
gpact:fix/refactorex-line-length

Conversation

@gpact
Copy link
Copy Markdown
Contributor

@gpact gpact commented Apr 11, 2026

Fix Refactorex code actions to respect project formatter line_length when rewriting code (for example, Remove pipe).

Refactorex was calling Sourceror.to_string/2 without forwarding line_length from formatter config. As a result, code actions formatted output using Sourceror’s default line_length of 98, even when the project configured a different value.

Copy link
Copy Markdown
Collaborator

@doorgan doorgan left a comment

Choose a reason for hiding this comment

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

Thank you! 💜

@doorgan doorgan merged commit f12c48a into elixir-lang:main Apr 14, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants