-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Spread out code inside decompiled methods to make things look better. #42826
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, but why do we change DocComments to RegularComments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, but why do we change DocComments to RegularComments?
Primarily because doc comments are terrible to read in code. They're desigend to be structured, and then rendered nicely by some presenter (i.e. quick-info, or html docs), but they themselves are really unpleasant to look at as the first class source of info.
We convert to just a really simple textual view that puts the content forward and basically hides all the structure tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... hides all the structure tags ...
Also loses semantic references and syntax highlighting 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just have to write some tools for that :)
|
@CyrusNajmabadi Can you back out #42809 from this change? I prefer to keep the spacing between members under the approach of #42850. |
|
@sharwell . Yes, that's my plan once your PR goes in. |
0de86d3 to
ea3e4ca
Compare
ea3e4ca to
701daab
Compare
src/EditorFeatures/CSharp/DecompiledSource/CSharpDecompiledSourceFormattingRule.cs
Show resolved
Hide resolved
src/EditorFeatures/CSharp/DecompiledSource/CSharpDecompiledSourceFormattingRule.cs
Show resolved
Hide resolved
src/EditorFeatures/CSharp/DecompiledSource/CSharpDecompiledSourceFormattingRule.cs
Show resolved
Hide resolved
src/EditorFeatures/CSharp/DecompiledSource/CSharpDecompiledSourceFormattingRule.cs
Show resolved
Hide resolved
src/EditorFeatures/CSharp/DecompiledSource/CSharpDecompiledSourceFormattingRule.cs
Show resolved
Hide resolved
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
src/EditorFeatures/CSharpTest/Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests.csproj
Outdated
Show resolved
Hide resolved
…itorFeatures.UnitTests.csproj
Followup to: #42809
Before:
After: