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

Region formatting within where clauses #572

Closed
jinwoo opened this issue Apr 27, 2020 · 1 comment · Fixed by #618
Closed

Region formatting within where clauses #572

jinwoo opened this issue Apr 27, 2020 · 1 comment · Fixed by #618

Comments

@jinwoo
Copy link

jinwoo commented Apr 27, 2020

Is your feature request related to a problem? Please describe.

#516 now allows formatting a certain part of the file and it's a big improvement. This feature request is similar to that but applies to regions in a where clause rather than to top-level regions.

Sometimes I want to format only a certain inner function in a where clause (e.g., when adding a new inner function to an existing file). But it's not currently possible because it is not a top-level entity. It will be a usability improvement to be able to do that.

Describe the solution you'd like

In a similar way #516 handles top-level entities.

Describe alternatives you've considered

A workaround is to temporarily move the inner function to the top-level, format it, move it back to the where clause, and then indent appropriately. But it's inconvenient.

@Avi-D-coder
Copy link
Contributor

I believe this is needed for let as well.

@mrkkrp mrkkrp self-assigned this Jun 16, 2020
@mrkkrp mrkkrp added this to In progress in Google engagement Jun 16, 2020
@mrkkrp mrkkrp moved this from In progress to Done in Google engagement Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants