Skip to content

Comments

Format type parameter values as types#12448

Merged
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:FixTypeParameterAttributeFormatting
Nov 5, 2025
Merged

Format type parameter values as types#12448
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:FixTypeParameterAttributeFormatting

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Nov 5, 2025

Fixes #12445

With our generic "code-gen as though everything is an expression", Roslyn was formatting Guid? as Guid ?

Yes that if statement could be almost entirely written as one pattern, but I think it would have been uglier and unreadable
@davidwengier davidwengier requested a review from a team as a code owner November 5, 2025 02:21
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:

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.

Visual Studio 2026 Insiders - Razor formatter inserts an unwanted space before nullable marker inside component attribute: Guid? -> Guid ?

3 participants