Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Fix issue #710: fix suggest delete binding #728

Merged
merged 10 commits into from
Sep 2, 2020

Conversation

rayshih
Copy link
Contributor

@rayshih rayshih commented Aug 13, 2020

By generalizing code action: suggestions of delete unused top binding to suggestions of delete unused binding.

This is basically a reimplementation which traverses the AST.

suggest delete unused binding

@digitalasset-cla
Copy link

digitalasset-cla commented Aug 13, 2020

CLA assistant check
All committers have signed the CLA.

@rayshih rayshih changed the title Fix suggest delete binding Fix suggest delete binding #710 Aug 13, 2020
@rayshih rayshih changed the title Fix suggest delete binding #710 Fix issue #710: fix suggest delete binding Aug 13, 2020
Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have looked at this carefully and it looks good to me.
Very impressive, thank you!

@pepeiborra pepeiborra merged commit 535e9bd into haskell:master Sep 2, 2020
@pepeiborra
Copy link
Collaborator

Merged, thank you Ray!

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
…ide#728)

* [CodeAction] reimplement suggestDeleteBinding

* [CodeAction] handle whole line removal for suggestDeleteUnusedBinding

* [CodeAction] add test for bug haskell/ghcide#710

* [CodeAction] add more tests for suggesting unused binding

* fix hlint warnings

* fix hlint warnings

* remove unused imports

* fix compilation problem for 8.4

* remove redundant pattern matching

* reconcile the disagreement of a pattern matching is redundant
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
…ide#728)

* [CodeAction] reimplement suggestDeleteBinding

* [CodeAction] handle whole line removal for suggestDeleteUnusedBinding

* [CodeAction] add test for bug haskell/ghcide#710

* [CodeAction] add more tests for suggesting unused binding

* fix hlint warnings

* fix hlint warnings

* remove unused imports

* fix compilation problem for 8.4

* remove redundant pattern matching

* reconcile the disagreement of a pattern matching is redundant
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
…ide#728)

* [CodeAction] reimplement suggestDeleteBinding

* [CodeAction] handle whole line removal for suggestDeleteUnusedBinding

* [CodeAction] add test for bug haskell/ghcide#710

* [CodeAction] add more tests for suggesting unused binding

* fix hlint warnings

* fix hlint warnings

* remove unused imports

* fix compilation problem for 8.4

* remove redundant pattern matching

* reconcile the disagreement of a pattern matching is redundant
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants