I'm working on a VS extension and have been trying for some time to find a way to access selections the user has made in Team Explorer. For example, I would like to retrieve the currently selected team project along with its TFS server URL or the set of excluded/included changes in the 'Pending Changes' window. It seems to me this should be a relatively straight-forward proposition but a fairly exhaustive search has so far turned up nothing.
Is anybody aware of a way to accomplish this?