I've implemented an introduce variable refactoring and it's working very well. In the target language, there are times when a given expression can have multiple valid evaluated types, though, and when that's the case I want to present those types to the user for selection before setting the variable name. Unfortunately I'm not seeing an obvious way to do this. Anyone have any pointers/tips on how I might be able to do that easily? Can I perhaps insert a live template where I'd normally insert the declaration moving from a type selector to the variable name?
Thanks in advance for any thoughts!