-
-
Notifications
You must be signed in to change notification settings - Fork 7
biome incorrectly collapses whitespace on closing paren #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If it worked before, then I'm not sure it's a Biome bug. Did you update something related to biome?
Maybe you have some settings that allow that? Or some other extension is getting in the way? |
Hello @maxpetretta, please provide a minimal reproduction. You can use one of the following options:
Issues marked with |
@ematipico i haven't updated biome to my knowledge, v1.9.4. i have zed's i've also tried the extension's new update released this morning, same behavior. i only have theme/language extensions installed (besides biome). i'll see if i can try a clean zed install tonight |
i get it too, happens on |
I've also been getting this for the past couple of weeks and I can fix it by uninstalling this extension, though obviously that's not really an option if our codebase uses biome formatting. I don't think this should have been closed. |
I see this with versions 0.1.5, 0.1.4, and 0.1.3. I didn't test any earlier. I think mostly likely there has been some change in Zed which has broken this extension. |
No one has provided a reproduction. I'd be happy to open it if a reproduction is provided |
My apologies, that was on me. @ematipico here is a reproduction: https://github.com/maxpetretta/biome-zed-whitespace-closing-paren |
@maxpetretta can you also please add the zed settings? Usually they are inside |
i have added my personal zed settings to the repo |
for the last week or so, the biome extension in zed has been incorrectly collapsing whitespace, specifically when typing a closing paren. the issue seems to only happen when there is an existing return statement within the function (see video). removing the extension from zed fixes the issue.
note: i am not saving in the video after typing the closing paren, so formatting should not be taking place
versions:
to reproduce:
CleanShot.2025-03-24.at.21.32.00.mp4
The text was updated successfully, but these errors were encountered: