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

Update Define Function Code Action to have knowledge of comments #2740

Merged
merged 3 commits into from Feb 27, 2022

Conversation

drsooch
Copy link
Collaborator

@drsooch drsooch commented Feb 27, 2022

Closes #2715

Use GetParsedModuleWithComments rather than GetParsedModule as the
default ToCodeAction instance. The insertion code needs knowledge of
comments in order to properly insert the function definition.

Also swaps out the old default error "Not Implemented" definition with
a hole.

Use `GetParsedModuleWithComments` rather than `GetParsedModule` as the
default `ToCodeAction` instance. The insertion code needs knowledge of
comments in order to properly insert the function definition.

Also swaps out the old default `error "Not Implemented"` definition with
a hole.
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.

Thanks!

@pepeiborra pepeiborra merged commit 016ccde into haskell:master Feb 27, 2022
@drsooch drsooch deleted the define-function-fix branch August 20, 2022 02:43
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.

Define Function Code Action should respect Haddock Comments
2 participants