Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio Object Browser - how to programmatically get the current selection?

$
0
0

I'm trying to add some functionality to the Visual Studio Object Browser (2015 initially, but I may retrofit it to 2012 and 2013 in time).

I've managed to get a command onto the Context Menu. But that command then needs to work with the currently selected item.

So now I'm really struggling to work out how to find that selected item. There seem to be some interfaces for automating the Object Browser, but so far I've had no luck getting what I would think is a simple piece of information - the interfaces don't seem to cover it.

I can get to the Object Browser Window via DTE, and that has a Selection property, but it's always null.

It also seems that the Object Browser isn't extended that much - I don't think I've come across any example of VS Extensions working with it.

Thanks for any help...


Ian


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>