razor
razor copied to clipboard
Incorrect cursor indentation in .razor file when typing newline after child element of a component
This issue has been moved from a ticket on Developer Community.
Repro steps:
- Create a Blazor Server project
- Add a package reference to Microsoft.AspNetCore.Components.QuickGrid
- Add a QuickGrid component with a PropertyColumn to index.razor using a self-closing tag
- Type a newline at the end of the PropertyColumn
Expect result: Cursor is indented at the same level as the PropertyColumn
Actual result: The cursor is indented one level deeper than the PropertyColumn
Original Comments
Feedback Bot on 8/7/2022, 07:11 PM:
(private comment, text removed)
Original Solutions
(no solutions)
Good catch @Daniel Roth , the "=>" in the property value is the important bit here, it likely breaks TextMate.
This was fixed by https://github.com/dotnet/razor/pull/8996