Skip to content

StringSyntaxAttribute does not work for property assignments in with expressions #69237

@danlyons-home

Description

@danlyons-home

Version Used:

.NET 7.0.306 on Visual Studio 17.6.5

Steps to Reproduce:

public sealed record Foo
{
    [StringSyntax(StringSyntaxAttribute.Json)]
    public required string Bar { get; set; }
}

The syntax highlighting for the JSON in Bar works great for object initialization and regular property assignment, but it falls down in with expressions:

image

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions