dotnet/roslyn
Vedi su GitHubDelegates are not properly reformatted when converting property from expression body to block body
Open
#71.637 aperta il 14 gen 2024
Area-IDEBughelp wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
Version Used: VS 17.8.4
Steps to Reproduce:
For both properties, open the lightbulb menu and select "Use block body for property".
class C
{
Action A => delegate
{
};
Action A2 => () =>
{
};
}
Expected Behavior:
The block of the delegate or lambda is correctly indented.
Actual Behavior: The indentation of the delegate body is not changed.
Interestingly, type creation expression within the property body are correctly formatted/indented: