Optimize imports is not finding unused imports
Hi all,
I'm using Webstorm 2021.3 and optimise imports has suddenly stopped working. It runs, but it doesn't remove unused imports. Had a look through settings to see if there's an option I'm missing but I can't see one. I usually use the key binding (ctrl+alt+o) and have tried through "Reformat file" as well and nothing.
Am I missing a setting/config somewhere?

Please sign in to leave a comment.
does the issue persist on caches invalidation (File > Invalidate caches, Invalidate and Restart)? Also, can you repeat the issue in a new project?
Elena Pogorelova Thanks for the reply!
The issue does persist on caches invalidation, but I can not replicate the issue in another project.
Weird... could you share a project it can be repeated with?
Elena Pogorelova I'll try and create a project but it may take some time as it's only affecting one private project, which I can't share.
I've also tried File > Repair IDE... but no luck.