haskell / haskell/haskell-language-server
Is it possible to change the "add to the import list of" message to look similar to other import messages
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
I've used `sizeOf` in my code and haven't imported it, so I bring up the code actions menu and see this:

I look for an `import Foreign.Storable(sizeOf)` amongst all the clutter, but it's not there!
Several times I've accidentally imported something from one of those weirdy packages which reexports loads of stuff, or even imported the wrong thing!
Would it make sense to just render this as a default import action, i.e. `import Foreign.Storable(Storable(sizeOf))`? Almost all the time I don't care if I've already imported `Foreign.Storable` before or not (it would be nice to see the imports I've already go present subtly promoted by putting them at the top of the list of code actions however).
(At the moment this behaviour is actually slightly useful, because it tells me that I've got to go and correct https://github.com/haskell/haskell-language-server/issues/609 if I'm importing a constructor)
(I mentioned this issue [here](https://github.com/haskell/haskell-language-server/issues/609#issue-746334129)) but I think it deserves its own issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.