This project is read-only.
1

Resolved

Simplify primitive type with namespace isn't included

description

Source:
using System;
...
Int32 a = 2;
System.Int32 b = 3;
Selecting Fix All Occurrences on either one of these will not affect the other one.

comments

SSL wrote Nov 23, 2014 at 8:25 PM

Sorry for the confusing title; I couldn't think of a better one.

manishv wrote Nov 27, 2014 at 10:42 PM

Thank you for the feedback!

Current design of FixAll occurrences is based on the SyntaxNode being simplified, not the resultant simplified value. Hence simplify "System.Int32" is different from simplify "Int32". We currently have a work item planned for next iteration where we will add more interpretations of FixAll. For example, we would support "simplify all type names" in document/project/solution, which will take care of this issue.

Regards,
Manish