-
-
Notifications
You must be signed in to change notification settings - Fork 389
Record quick fixes based on fields should be deduped #798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Reproduced with lastest hls and ghcide (although i got only 2 duplicates)
|
I can take a look at this issue. Any good place to start? |
@gdevanla I think the code that trigger extension completion will be: Not known much about it though, it comes from the time where this was part of daml, according to blame. |
@jneira this might be a noob question. What's the consequence of changing the line to this |
it could work, a test case would be the definitive evidence 🙂 |
@jneira can you help me a bit? I am a bit lost on where to provide the pull request for ghcide |
@ishmum123 sorry for the delay, the pull request should be done in this repo, now that ghcide lives here. But the code responsive of suggest language extensions has been removed from ghcide, cause hls had already a plugin to do the same.
|
I'm not super confident, but I think it wont't fix this issue as this issue is caused by multiple diagnostics, not by a single diagnostic. |
Mmm, @Ailrun you are right and the fix becomes more complex, i am afraid. ghc is giving us a waning for each field so the alternatives i can think of is:
|
You can use
|
@berberman you probably did a much better job than I did. I was working on it for a while, so thought I should push the fix if it's of any use. |
@ishmum123 Oops, really sorry, I should ask first if someone has already started working on this :( |
Not sure what version of ghcide I'm on...
The text was updated successfully, but these errors were encountered: