Renaming a nested type should offer to update filename using Outer.Inner.cs convention
#60.054 aperta il 9 mar 2022
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
Version Used: 17.2.0 Preview 3.0 [32308.589.main]
Steps to Reproduce:
Create a file Outer.Inner.cs containing:
partial class Outer
{
class Inner {}
}
Invoke rename on the Inner symbol.
Notice that the rename dialog does not offer to rename the file.

Expected Behavior:
Renaming Inner to Foo also renames the source file to Outer.Foo.cs.
Equally, renaming Outer to Bar further renames the file to Bar.Foo.cs (and renames any other files with the same prefix that have corresponding nested types).
Equally files nested three or more levels deep should support this A.B.C.cs convention.
Actual Behavior:
Rename for the file is disabled.