-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
Needs triageThe issue needs to be triagedThe issue needs to be triaged
Description
IDE and version
WebStorm 2025.2
Extension version
1.10.0
Biome version
2.1.3
Operating system
- Windows
- macOS
- Linux
Description
Since Biome doesn't automatically remove unused exports, I also need to have "Optimize imports" active as an Action on Save. But when both are active, there's a race condition which one gets to actually sort the imports.
Here's the related issue on JetBrains's side: https://youtrack.jetbrains.com/issue/WEB-74358
Steps to reproduce
- Activate both "Optimize imports" and "Run Biome sort import" under "Actions on Save" in the settings
- Create a TypeScript file with multiple imports
- Save it
Expected behavior
The file should always be saved in a way so that the imports pass biome check without warnings. Instead, sometimes imports are first sorted by Biome, then by optimize imports, leading to a warning from Biome that the imports are not sorted correctly.
Does this issue occur when using the CLI directly?
No
Link to a minimal reproduction
No response
Metadata
Metadata
Assignees
Labels
Needs triageThe issue needs to be triagedThe issue needs to be triaged