-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghcide: Implements a CodeAction to disambiguate ambiguous symbols (#1264
) * wip * Draft completed * Removes Unuseds * Redundant extension * linting * Makes HLint happy * tweak for transfer annotation logic (not working) * Initial implementation done * Import list reorder * Remove redundant fmt * lint * Missing import * Excludes false-positive qualified imports * A first test (not enough though) * fmt.sh * Some more test cases * More test cases * Ah! CRLF have bitten me! * Tentative workaround for #1274 * Wait much to ensure rewrite suggestion to be collected * Tests for type suggestion * Slightly more wait * A little smarter waiting strartegy for actions * Import list slim up * Adjusted to the master * Update ghcide/src/Development/IDE/Plugin/CodeAction.hs Co-authored-by: Pepe Iborra <[email protected]> * Rewrote using `expectDiagnostics` * Case for Prelude.++ * Corrects test name * Renames `rawIEWrapName` to `unqualIEWrapName`, and moved to the appropriate module * Rewrote qualifying strategy with `Rewrite` * Use exactprint also for hideImplicitPreludeSymbol * Unify exact actions and `suggestImportDisambiguation` * Moves a comment to the right place * Won't panic on errornous input, let HLS keep going * No, each errornous rewrite must not be dropped seprately, but discarded as a whole * Update ghcide/src/Development/IDE/Spans/Common.hs Co-authored-by: Potato Hatsue <[email protected]> * ieNames * Makes Splice plugin compiles * Stop using nfp * Since there is global `setEntryDPT dp00`, we don't add offset here * Removes redundant (why warned here?) * Made `hideImplicitPreludeSymbol` total Co-authored-by: Pepe Iborra <[email protected]> Co-authored-by: Potato Hatsue <[email protected]>
- Loading branch information
1 parent
6b6c405
commit c7cd09e
Showing
25 changed files
with
659 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.