Skip to content

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Mar 27, 2020

This change updates Collapse to Definitions to produce a view closer to Metadata As Source, where empty lines are omitted between collapsed elements of the same kind. Since the blank lines are included in the folding region, this feature works without removing the blank lines from the original source.

Supersedes #42809

Go To Decompiled Source

Before

After

image

Collapse to Definitions

Before

image

After

image

@sharwell
Copy link
Contributor Author

I added a bunch of tests. It's not perfect, but there were no tests of this behavior beforehand so it's an improvement 😂

@sharwell sharwell marked this pull request as ready for review March 27, 2020 23:24
@sharwell sharwell requested a review from a team as a code owner March 27, 2020 23:24
@CyrusNajmabadi
Copy link
Member

You might want to add pictures here, in case anyone comes to this PR in the future :)

@CyrusNajmabadi
Copy link
Member

Overalll LGTM. have some potential tiny style questions about spacing of constructs. But i leave that to you in terms of how it feels. Signing off on this approach and practically any reasonable tweaks you make to it.

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants