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
Create a program that has a field marked as something that is not json by using a [StringSyntax] attribute,
Look at the highlighted text in the IDE.
Example program:
usingSystem.Diagnostics.CodeAnalysis;classProgram{[StringSyntax("notjson")]privatestringfield;voidGoo(){// The JSON constant below is highlighted as json:this.field=@"[{ 'goo': 0}]";}}
A minimal repro, with source-code provided, is ideal. Using sharplab is preferred for compiler/language issues whenever possible.
Diagnostic Id:
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").
Version Used:
4.10.0
Steps to Reproduce:
Example program:
A minimal repro, with source-code provided, is ideal. Using sharplab is preferred for compiler/language issues whenever possible.
Diagnostic Id:
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g.
"IDE0030: Use coalesce expression"
).Expected Behavior:
The constant string is not highlighted as JSON.
Actual Behavior:
The constant string is highlighted as JSON.
A PR was created for this issue: #74019
The text was updated successfully, but these errors were encountered: