Skip to content

Add IVsRefactorNotify changes to MoveToNamespace refactorings#34915

Merged
ryzngard merged 4 commits intodotnet:masterfrom
ryzngard:issue/34685_vsrefactornotify
Apr 17, 2019
Merged

Add IVsRefactorNotify changes to MoveToNamespace refactorings#34915
ryzngard merged 4 commits intodotnet:masterfrom
ryzngard:issue/34685_vsrefactornotify

Conversation

@ryzngard
Copy link
Copy Markdown
Contributor

@ryzngard ryzngard commented Apr 10, 2019

If available, use the host service to provide IVsRefactorNotify changes of the symbols being changed so dependent frameworks
can handle the changes appropriately.

Adds unit tests that verify we have the correct code operations produced when we expect symbols to change.

Fixes #34685 for move type. Still needs to be done for sync to namespace I believe

@ryzngard ryzngard requested a review from dpoeschl April 10, 2019 21:39
@ryzngard ryzngard requested a review from a team as a code owner April 10, 2019 21:39
@genlu
Copy link
Copy Markdown
Member

genlu commented Apr 11, 2019

Just curious, what is IVsRefactorNotify?

@ryzngard
Copy link
Copy Markdown
Contributor Author

@genlu It allows a hook for things like code generators (like WPF) to react to symbol name changes. The inline rename feature adds these as well, and we'll likely need to add for sync namespace

Copy link
Copy Markdown
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryzngard
Copy link
Copy Markdown
Contributor Author

@jinujoseph @vatsalyaagrawal for approval

@jinujoseph jinujoseph added this to the 16.1.P3 milestone Apr 16, 2019
@ryzngard ryzngard merged commit 88d7d93 into dotnet:master Apr 17, 2019
@ryzngard ryzngard deleted the issue/34685_vsrefactornotify branch May 2, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Features that change a type's namespace should IVsRefactorNotify of the "rename"

6 participants