Skip to content

Conversation

@pepeiborra
Copy link
Collaborator

This fixes a regression on the extend imports code action w.r.t 0.5.0.

It only arises when checkProject is disabled (by default it is enabled), so I extended the test suite to cover that case too

= Just ident
| otherwise = Nothing

-- fallback to using GHC suggestion even though it is not always correct
Copy link
Collaborator

Choose a reason for hiding this comment

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

I didn't see a test for this branch added - would be good to see it reflected there.

Copy link
Collaborator Author

@pepeiborra pepeiborra Jan 2, 2021

Choose a reason for hiding this comment

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

Well, I duplicated the test suite to run without checkProject, but I just checked and it doesn't cover this branch. It might be very tricky to construct a test that covers it though, so I'm inclined to leave it until a user complains

@pepeiborra pepeiborra merged commit 90966db into haskell:master Jan 2, 2021
@pepeiborra pepeiborra deleted the extendImports-fixes branch January 2, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants