Skip to content

Conversation

@davidwengier
Copy link
Member

@JoeRobich
Copy link
Member

/azp run roslyn-integration-CI

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

RazorNamespaceDeclarationPreference NamespaceDeclarations,
bool PreferTopLevelStatements,
int CollectionExpressionWrappingLength)
[property: DataMember] RazorSpacePlacement Spacing,
Copy link
Member

Choose a reason for hiding this comment

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

i think you need DataMember(Order = ...) here, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought that too, but the real CSharpSybtaxFormattingOptions this wraps doesn't have it, and this works fine in manual testing 🤷‍♂️

Guessing someone configured something, or changes something in servicehub maybe

@davidwengier davidwengier merged commit 0f029e2 into dotnet:main Jul 21, 2025
26 checks passed
@davidwengier davidwengier deleted the RazorFormatting branch July 21, 2025 09:34
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 21, 2025
davidwengier added a commit to dotnet/razor that referenced this pull request Jul 29, 2025
Fixes #11839
Needs dotnet/roslyn#79458 before it will compile

This just tweaks the "override C# settings for tests" system we had into
a formal "can specify C# settings before formatting" option, and then in
cohosting we grab the options from Roslyn (via new EA API) before
jumping to OOP.
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants