Open OliverJAsh opened 5 months ago
If it helps narrow the issue down, I can't repro this with biome lint --apply
. The import statement is fully removed. I also can't repro with code actions in my editor (not VS Code), however I'm applying them manually.
I have the same issue and the empty import is not removed on save, with biome lint --apply
or with biome check --fix
. VS Code 1.92.2, Biome extension 2.3.0, Biome 1.8.3, macOS
VS Code version
1.88.1
Extension version
2.2.2
Biome version
1.7.2
Operating system
Description
When
noUnusedImports
is enabled, autofix on save leaves an empty import.Steps to reproduce
Given:
biome.json
:.vscode/settings.json
:index.ts
:When I save
index.ts
and the autofix runs, I end up with an empty import:Expected behavior
Import is removed.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
No response