Hi All,
We are extending Visual Studio's functionality. In this, we have used Visual Studio's solution Explorer with few menus like File, Edit, View, Project, Build & Debug. Under "Debug" Menu, We have following sub menus like Windows(VS standard Sub Menu), Start Debugging (VS standard Sub Menu), Settings(Custom Menu), Attach To Project(Custom Menu), Stop Debugging(Custom Menu) etc ...
I have created Sub menu under "Debug" main menu as -
<Button guid="guidVSPackage1CmdSet" id="cmdidDebuggerStopDebugging" priority="0x0900" type="Button">
<Parent guid="guidVSPackage1CmdSet" id="XPI_G_MM_Debug_Footer"/>
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultDisabled</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<CommandFlag></CommandFlag>
<Strings>
<CommandName>Stop Debugging</CommandName>
<ButtonText>Stop Debugging</ButtonText>
</Strings>
</Button>
I want "Stop Debugging" sub menu to be enable only when I have clicked on "Start Debugging" sub menu of Visual Studio.
I have used VisibilityConstraints in my.Vsct file as
<VisibilityItem guid="guidVSPackage1CmdSet" id="cmdidDebuggerStopDebugging" context="UICONTEXT_Debugging"/>
But problem is that, "Stop Debugging" sub menu is visible when my package is loaded and debugging is not activated (Means UICONTEXT_Debugging is not working in my case).
Instead, I want "Stop Debugging" should be enable it when Debugging is activated and hide it when Debugging is
dis activated.
Please suggest me solution.
Thanks,
Sudarshan