dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.92k stars 4.02k forks source link

Automatically change namespace hierarchy after moving code files #57053

Open vsfeedback opened 2 years ago

vsfeedback commented 2 years ago

This issue has been moved from a ticket on Developer Community.


Automatically change namespace hierarchy after moving code files.

example:

move foo.cs from:

AFolder |___BFoloer/foo.cs

to:

AFolder |BFoloer |foo.cs

Auto from AFolder.BFolder.foo to AFolder.foo.


Original Comments

Feedback Bot on 9/26/2021, 02:51 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

jinujoseph commented 2 years ago

@genlu isn't it already should be working with sync namespace ?

genlu commented 2 years ago

Sync-name space is a refactoring. I but I think this might be supported by the cool new feature from @JoeRobich?

JoeRobich commented 2 years ago

Adding @ryzngard who has worked on the "move to different folder" scenario.

ryzngard commented 2 years ago

This was happening. AFAIK we have done everything we can on the Roslyn side. https://github.com/dotnet/project-system/pull/6623

@ocallesp do you know what the status of this is? I haven't looked at it in a while