Open JamyGolden opened 3 months ago
Can you confirm this happens even if the biome extension is disabled?
If the Biome extension is disabled, the expected functionality happens: Pasting the emoji (unicode value: U+2708 U+FE0F
) is correctly pasted as is into the file and the U+FE0F
part is not stripped away.
A colleague of mine actually ran into this issue and I was able to recreate it so I know this at least happens on different operating systems and different machines.
Just popping by to say I can still reproduce this on Biome 1.4.0 in Intellij IDEA 2024.2.1
It happens to me as well, Biome 1.4.0 in Intellij IDEA 2024.2.1 on MacOS Sonoma 14.7
Pasting this emoji (⚠️) into my translation json file works but when I save the file it gets replaced to !
but the others are untouched
{
"warning": "⚠️ Warning",
"welcome": "👋 Welcome {name}!",
"askAi": "✨ Ask AI",
"seeThis": "👈 This is {node}’s AI Logs"
}
It works at the playground though
Maybe it's an IntelliJ problem not Biome
More detailed steps to reproduce: 1) Use Biome plugin 1.4.0 in IntelliJ IDEA 2024.2.3 (using Biome 1.9.1) with Format on Save enabled
2) Open this file: test1.json
3) Make a small change and save it
4) The emoji will have changed like this: test2.json
Problem
There is an issue where IntelliJ Biome formats emojis when they are pasted into the document.
Run format on save
enabled.U+2708 U+FE0F
) into the documentIt formats that emoji to ✈ (unicode value:
U+2708
) when pasting in it - not even on save. Biome cli itself doesn't do this formatting, so it's definitely an IntelliJ Biome issue. WhenRun format on save
is not enabled, I don't get the error.Expectation
When pasting the emoji into the document, it doesn't format away the
U+FE0F
emoji bit of the unicode character, like IntelliJ behaves without Biome IntelliJRun format on save
option enabled.System information
Operating System: PopOs 22.04 and MacOS Sonoma App: IntellJ IDEA Ultimate 2024.2.0.1 Biome IntelliJ version:
1.2.1
and also tried1.0.0