Skip to content

πŸ› Plugin clashes with "Optimize imports"Β #212

@dbartholomae

Description

@dbartholomae

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

  1. Activate both "Optimize imports" and "Run Biome sort import" under "Actions on Save" in the settings
  2. Create a TypeScript file with multiple imports
  3. 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

No one assigned

    Labels

    Needs triageThe issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions