-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add missing UTF-8 and raw string literal compiler diagnostics #50393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing UTF-8 and raw string literal compiler diagnostics #50393
Conversation
Add the new diagnostics that weren't already included in an appropriate diagnostic issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds documentation for missing UTF-8 and raw string literal compiler diagnostics (CS8996, CS9026, and CS9047) to the C# compiler messages documentation. The changes consolidate these error codes into the existing string literal documentation article and remove them from the generic error page.
Key Changes
- Added CS8996, CS9026, and CS9047 error codes to the string literal documentation with detailed resolution guidance
- Removed CS9026 and CS9047 from the generic "sorry we don't have specifics" error page
- Updated the table of contents to include the new error codes in the string literal article
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| docs/csharp/language-reference/compiler-messages/string-literal.md | Added documentation for three missing compiler diagnostics (CS8996, CS9026, CS9047) with resolution techniques, updated title/description, and refactored guidance sections |
| docs/csharp/language-reference/toc.yml | Updated displayName to include the three newly documented error codes |
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removed CS9026 and CS9047 from the generic error list since they now have dedicated documentation |
| .github/prompts/error-consolidation.md | Fixed spelling error in internal prompt documentation |
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Fixes #49596
Internal previews