Skip to content
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

Cleanup Development.IDE.CodeAction #3360

Merged
merged 6 commits into from
Nov 23, 2022

Conversation

santiweight
Copy link
Collaborator

@santiweight santiweight commented Nov 22, 2022

Extract a couple of modules from the massive CodeAction file...

Intended for commit-by-commit review

@santiweight santiweight force-pushed the cleanup-plugin-codeaction branch from 82cf824 to 3a835ad Compare November 22, 2022 07:25
@santiweight santiweight force-pushed the cleanup-plugin-codeaction branch from 3a835ad to 975ef7a Compare November 22, 2022 07:29
@santiweight santiweight marked this pull request as ready for review November 22, 2022 09:02
Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

LGTM. You're getting some hlint failures for forbidden functions since CodeAction.hs is whitelisted for historical reasons. If you feel like fixing those that would be great, otherwise you can add the new files to the whitelist in hlint.yaml.

@santiweight santiweight enabled auto-merge (squash) November 23, 2022 00:59
@santiweight santiweight merged commit ac83ca4 into haskell:master Nov 23, 2022
, TextEdit _range (if parenthise then addParens name' else name')
)
case T.uncons name of
Nothing -> error "impossible: empty name provided by ghc"
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be clear, these are an improvement in that they give clearer errors, but they will still crash HLS unrecoverably. We really, really want to avoid error and friends also. But fixing them properly would require more refactoring.

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