Skip to content

Fix one formatting bug, and prevent another from crashing the formatter#12786

Merged
davidwengier merged 2 commits intodotnet:mainfrom
davidwengier:VariousFormattingFixes
Feb 15, 2026
Merged

Fix one formatting bug, and prevent another from crashing the formatter#12786
davidwengier merged 2 commits intodotnet:mainfrom
davidwengier:VariousFormattingFixes

Conversation

@davidwengier
Copy link
Member

From https://developercommunity.visualstudio.com/t/Razor-Formatting-Feature-internal-error/11041869#T-ND11043454

First commit is a fix for formatting when there are two markup elements in the same line, inside a C# block.
Second commit is ensuring we don't crash when the document generation produces bad data. The bad data comes from us not handling block bodied lambdas in attributes properly, for which I've logged #12785 to fix at some point. Thought it was worth at least unblocking users for now though.

@davidwengier davidwengier requested a review from a team as a code owner February 15, 2026 06:56
Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@davidwengier davidwengier merged commit bbeb286 into dotnet:main Feb 15, 2026
10 checks passed
@davidwengier davidwengier deleted the VariousFormattingFixes branch February 15, 2026 20:43
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants