Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ArgumentNullException.ThrowIfNull prevents automatic exception documentation #77281

Open
vsfeedback opened this issue Feb 19, 2025 · 1 comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
When using ArgumentNullException.ThrowIfNull instead of a normal throw statement, writing /// no longer automatically documents ArgumentNullException as a possible exception thrown by the method:

image.png

-->

image.png


Original Comments

Feedback Bot on 2/16/2025, 08:15 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@jjonescz jjonescz added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 21, 2025
@RenderMichael
Copy link
Contributor

It would be nice if the the auto-completed docs you get when you type /// would traverse every method/property and read the <exception> tags on their documentation. Hopefully that wouldn’t be considered too noisy or expensive to do.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants