Skip to content

Fix missing indentation in generated API diffs#10472

Merged
svick merged 1 commit into
dotnet:mainfrom
svick:fix-apidiff-indentation
Jul 21, 2026
Merged

Fix missing indentation in generated API diffs#10472
svick merged 1 commit into
dotnet:mainfrom
svick:fix-apidiff-indentation

Conversation

@svick

@svick svick commented Jul 10, 2026

Copy link
Copy Markdown
Member

The api-diff tool had a bug where the first member of a type could lose its indentation in the generated markdown (#10213). This was caused by a synthesized default constructor lacking a body/semicolon, which fused it with the following member during formatting.

The tool is being fixed in dotnet/sdk#54130, but the already-generated diff files need manual correction. This re-indents the 101 affected member lines across 19 files to align with their sibling members.

Only whitespace (indentation) is changed; no API content is modified.

Contributes to #10213

The api-diff tool had a bug where the first member of a type could lose
its indentation in the generated markdown (dotnet#10213). This was
caused by a synthesized default constructor lacking a body/semicolon,
which fused it with the following member during formatting.

The tool is being fixed in dotnet/sdk#54130, but the already-generated
diff files need manual correction. This re-indents the 101 affected
member lines across 19 files to align with their sibling members.

Only whitespace (indentation) is changed; no API content is modified.

Ref dotnet#10213

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@svick
svick requested review from leecow and rbhanda as code owners July 10, 2026 13:12

@jeffhandley jeffhandley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are some corrections to nullability annotations on some of the APIs as well, but the updates match what's current so it's good with me to take those changes.

@svick

svick commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@jeffhandley This PR does not make any changes to nullability annotations. I have checked and git diff -w is empty.

Thanks for the review.

@svick
svick merged commit 7fbf1b4 into dotnet:main Jul 21, 2026
3 checks passed
@svick
svick deleted the fix-apidiff-indentation branch July 21, 2026 08:29
@jeffhandley

Copy link
Copy Markdown
Member

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