-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Collapse empty lines between elements of the same kind #42850
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
Conversation
|
I added a bunch of tests. It's not perfect, but there were no tests of this behavior beforehand so it's an improvement 😂 |
|
You might want to add pictures here, in case anyone comes to this PR in the future :) |
src/Features/CSharp/Portable/Structure/Providers/AccessorDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/ConstructorDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/DestructorDeclarationStructureProvider.cs
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/EnumDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/EventDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/IndexerDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/Structure/Providers/NamespaceDeclarationStructureProvider.cs
Outdated
Show resolved
Hide resolved
|
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 |
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
Collapse to Definitions
Before
After