Skip to content

"Add 'DebuggerDisplay' attribute" might not be respecting user preferences #57867

@Youssef1313

Description

@Youssef1313

returnType: generator.TypeExpression(SpecialType.System_String),

This will always generate string, even if the user prefers String. See #19242.

I think the CSharpSyntaxGenerator.TypeExpression(SpecialType) API is what needs modification here to respect user preferences. Not that we go and use the other overload.

cc @sharwell @CyrusNajmabadi (feel free to change the issue title as appropriate, depending on whether you agree we should modify the TypeExpression method or just fix the refactoring)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions