Code action to remove redundant imports is sometimes not created #4220
Labels
level: easy
The issue is suited for beginners
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
ZuriHac
This issue is suitable for ZuriHac Hacking sessions
Using hls 2.7.0.0 in vscode with ghc 9.4.8, I sometimes don't get "remove redundant imports" code action.
Here's a one-module reproducer (assuming you have a cabal project with postgresql-simple dependency):
Although warning is generated and displayed on hover:
The usual code action to remove unused import is not created.
Not a big deal, but it's breaking my flow, as now I have to focus on what the warning is exactly saying and fix it manually 😄
The text was updated successfully, but these errors were encountered: