Skip to content

Commit 5cc0a88

Browse files
authored
Make constructor public (#80895)
I added extra logging to help us repro Razor formatting bugs, which included serializing C# options as they're a big cause of issues, and people can never be relied upon to accurately report what the closure of them is for a particular document. Now I have received some logs, and I can't deserialize the options because there is no parameterless constructor 🤦‍♂️
1 parent f3ab885 commit 5cc0a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/ExternalAccess/Razor/Features/RazorCSharpSyntaxFormattingOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal sealed record class RazorCSharpSyntaxFormattingOptions(
2727
{
2828
public static readonly RazorCSharpSyntaxFormattingOptions Default = new();
2929

30-
private RazorCSharpSyntaxFormattingOptions()
30+
public RazorCSharpSyntaxFormattingOptions()
3131
: this(CSharpSyntaxFormattingOptions.Default)
3232
{
3333
}

0 commit comments

Comments
 (0)