Skip to content

Formatting issue with nested CascadingValue components #6001

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
The autoformat for .razor pages in blazor webassembly is wrong in strange ways.

The code below as a demo, The indent goes wrong after the @if() and is the result of the ctrl + k + d

@if (Object1!= null)
{
	<CascadingValue Value="Variable1">
		<CascadingValue Value="Variable2">
			<SomeRazorPage1  />
			@if (VarBool)
		{
			<div class="mb-16">
				<SomeRazorPage2  />
				<SomeRazorPage3  />
			</div>
		}
	</CascadingValue>
</CascadingValue>
}

I tried to record it, but my computer could not handle it.


Original Comments

Feedback Bot on 20/01/2022, 02:03 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions