
In visual studio, if you start typing over the name of a symbol where it is defined, then you are offered the opportunity with a smart tag to press Ctrl+. and have options appear to perform refactoring.
I can't see any built in services that provide this sort of tracking behavior - so I thought I would ask just in case I missed it. Otherwise my plan would be to subscribe to selection change events, and track the token ID and start offset - offering the ability to perform renaming if there is a match. Does that seem like a valid approach?
The one thing that I am not sure how to approach is the best way to determine the difference between the creation of that token in the first place and editing it later. Any advice would be appreciated...