dotnet/roslyn
Voir sur GitHubDelegates are not properly reformatted when converting property from expression body to block body
Open
#71 637 ouverte le 14 janv. 2024
Area-IDEBughelp wanted
Métriques du dépôt
- Stars
- (20 414 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (256 PRs mergées en 30 j)
Description
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: