|
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)
roslyn/src/Features/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Line 164 in 837e83d
This will always generate
string, even if the user prefersString. 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
TypeExpressionmethod or just fix the refactoring)