Add interpolated string handler error diagmostics#51544
Merged
BillWagner merged 5 commits intodotnet:mainfrom Feb 6, 2026
Merged
Add interpolated string handler error diagmostics#51544BillWagner merged 5 commits intodotnet:mainfrom
BillWagner merged 5 commits intodotnet:mainfrom
Conversation
Build the skeleton for the new file, include the messages from C# 10
Fixes dotnet#51442 This builds a consolidated file for all remaining diagnostics for interpolated strings and interpolated string handlers.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a dedicated compiler-messages article for string interpolation–related diagnostics (including interpolated string handler diagnostics) and updates navigation and the “undocumented errors” list accordingly.
Changes:
- Add
string-interpolations.mdcovering multiple interpolation- and handler-related diagnostics. - Update
docs/csharp/language-reference/toc.ymlto include the new “String interpolations” entry. - Remove newly documented diagnostics from
sorry-we-don-t-have-specifics-on-this-csharp-error.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md |
Removes several diagnostic codes that are now documented elsewhere. |
docs/csharp/language-reference/toc.yml |
Adds a TOC entry for the new string interpolation diagnostics article. |
docs/csharp/language-reference/compiler-messages/string-interpolations.md |
New consolidated diagnostics page for string interpolations and interpolated string handlers. |
.github/prompts/error-consolidation.md |
Updates the consolidation prompt’s target file and theme to string interpolations/handlers. |
docs/csharp/language-reference/compiler-messages/string-interpolations.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-interpolations.md
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-interpolations.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-interpolations.md
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gewarren
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #51442
Add a new file with all diagnostics related to interpolated strings.
Internal previews