-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
🐛 Formatting behaves unexpectedly #2222
Comments
3 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VS Code version
1.87.2
Extension version
2.2.2
Biome version
1.6.1
Operating system
Description
It happened a lot of times to me when I refactor multi-component modules to single-components. I guess it has to to with removing unused types & imports at the same time.
When I remove the components, I save & format with Biome and the result is a wrongly formatted file. It removes parts of
import
lines which break the rest of the formatting.Steps to reproduce
Expected behavior
When I run with Biome's CLI, it properly format the module :
It also works correctly if I Quick Fix: "Delete all unused imports".
VS Code Settings :
Does this issue occur when using the CLI directly?
No
Logs
The text was updated successfully, but these errors were encountered: