Skip to content

Fix unwieldy XML comment leading to poor IntelliSense#1101

Merged
dluc merged 1 commit intomicrosoft:mainfrom
stephentoub:fixcomments
May 19, 2023
Merged

Fix unwieldy XML comment leading to poor IntelliSense#1101
dluc merged 1 commit intomicrosoft:mainfrom
stephentoub:fixcomments

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented May 19, 2023

Motivation and Context

Clean up an XML comment that was rendering poorly in IntelliSense.

Description

Summaries should be kept short, typically just one sentence. Other details should be put into remarks. And if there's any kind of complicated formatting involved, the appropriate XML tags should be used so that docs and IntelliSense can render it well.

Note that there is a separate <example></example> tag which I've not used here, as Visual Studio only renders summaries/remarks in IntelliSense today and it seemed like the intent of whoever authored this was to include the example prominently. If that doesn't need to be shown, it'd be better still to separate the example out into such tags.

Before

image

After

image

Contribution Checklist

@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel.core labels May 19, 2023
@dluc dluc merged commit 3232990 into microsoft:main May 19, 2023
@stephentoub stephentoub deleted the fixcomments branch May 19, 2023 15:41
@stephentoub stephentoub changed the title Fix unweildy XML comment leading to poor IntelliSense Fix unwieldy XML comment leading to poor IntelliSense May 19, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
### Motivation and Context

Clean up an XML comment that was rendering poorly in IntelliSense.

### Description

Summaries should be kept short, typically just one sentence. Other
details should be put into remarks. And if there's any kind of
complicated formatting involved, the appropriate XML tags should be used
so that docs and IntelliSense can render it well.

Note that there is a separate `<example></example>` tag which I've not
used here, as Visual Studio only renders summaries/remarks in
IntelliSense today and it seemed like the intent of whoever authored
this was to include the example prominently. If that doesn't need to be
shown, it'd be better still to separate the example out into such tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants