Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect symbol rename in Visual Studio 2015 extension using roslyn?

Is there any way for a Visual Studio 2015 extension to detect when a symbol rename occurs in a solution, and act upon it? Or perhaps this functionality is available in Roslyn somewhere? I found the IRefactorNotifyService in Roslyn, but this seems to be an internal class. Is there a public supported way of doing this? (Either in Visual Studio through EnvDTE or similar, or using Roslyn)?

like image 823
DeCaf Avatar asked Dec 15 '25 08:12

DeCaf


1 Answers

You're looking for the existing IVsHierarchyRefactorNotify interface, which predates Roslyn.

In fact, the point of Roslyn's IRefactorNotifyService is to bridge to this VS interface (source)

like image 141
SLaks Avatar answered Dec 16 '25 23:12

SLaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!