You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we had a command to fetch the descriptions of given error or warning messages such that when a user only provides the code, a description can still easily be retrieved.
Problems
As far as I can tell, there is absolutely no rhyme or reason to the API for these codes. It is possible to fetch their description from the Roslyn source code however (https://github.com/thomaslevesque/GenerateCSharpErrors/blob/master/CSharpErrorsAndWarnings.md), so perhaps a file could be kept, which frequently syncs with the Roslyn source code to generate human-readable messages to retrieve.
Here are some resources on Microsoft Learn pages which feature most of the relevant codes:
patrickklaeren
changed the title
[Feature Suggestion]: Command to fetch descriptions of errors, warnings, and suggestions
Command to fetch descriptions of errors, warnings, and suggestions
Mar 26, 2024
Description
It would be great if we had a command to fetch the descriptions of given error or warning messages such that when a user only provides the code, a description can still easily be retrieved.
Problems
As far as I can tell, there is absolutely no rhyme or reason to the API for these codes. It is possible to fetch their description from the Roslyn source code however (https://github.com/thomaslevesque/GenerateCSharpErrors/blob/master/CSharpErrorsAndWarnings.md), so perhaps a file could be kept, which frequently syncs with the Roslyn source code to generate human-readable messages to retrieve.
Here are some resources on Microsoft Learn pages which feature most of the relevant codes:
The text was updated successfully, but these errors were encountered: