i am writing visual studio add-in for company's internal usage. It is integrated via TFS command line utility, and it has its own menu in solution explorer (Check in, Check Out, Add to Source...).
I want to know the state of the selected item in solution explorer, whether it is added to source control, it is checked out or it is checked in. According to these situations, i want to modify the menu of the add-in. For instance, if the item is checked out, i want to disable the checkout menu
could you please advice a hint, a way anything ?