Skip to content

Conversation

@wingyplus
Copy link
Contributor

I'm working on a quick prototype to fix #242. It seems that advance needs to be converted to UTF-16 as per the position encoding LSP spec. The code needs to fix the code_mod_case.ex in the apply_edits function to convert it back to UTF-8 as well.

assert result == formatted()
end

test "iss 242", %{project: project} do
Copy link
Member

Choose a reason for hiding this comment

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

change this to be a real test name please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. 🙏

@mhanberg mhanberg changed the title fix: formatting format incorrectly when contain special character fix: fix position encoding to ensure correct formatting for special chars Dec 10, 2025
@mhanberg mhanberg changed the title fix: fix position encoding to ensure correct formatting for special chars fix: position encoding to ensure correct formatting for special chars Dec 10, 2025
Signed-off-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com>
@mhanberg mhanberg merged commit b5b001b into elixir-lang:main Dec 14, 2025
69 of 70 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.

Formatting add space inside strings, when using special char.

2 participants