-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
ghcide: Implements a CodeAction to disambiguate ambiguous symbols #1264
Conversation
Hmm, it seems annotation transfer doesn't go well and error is occurring at the call of |
Thank you! The ghcide test suite is all one big module: |
I think |
Yeah, indeed Other difference is just a matter of preference: 'extendHiding` adds new hidden symbol at the start while extendImportToplevel at end. Yes, these differences can be abstracted away and we can unify two functions. But I didn't do that because their usage and purpose differ slightly and can cause some confusion. Still, there can be some refactoring to factor out common operations as separate functions, as you pointed out. |
You are right, I've ignored For parens, I think it was #1212 that made identifiers parenthesized before stored into |
It turns out that multiple import list isn't a direct cause of an additional newline at the top. |
Co-authored-by: Potato Hatsue <berberman@yandex.com>
OK, as the resolution of the conflict with |
Hmm, it seems |
OK, now it passes tests for constraint manipulation. |
I think this PR reached a stable state after merging current master's change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for this awesome work!
Not so important, but I've just added DEMO GIF to the summary. |
This PR aims at automating the disambiguation of import lists with the following options:
This PR fixes #1274: it calls
setEntryDPT (DP (0,0))
at the end ofrewriteToEdits
.DEMO