|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
3 | 3 |
|
4 | 4 | <!-- This is the file that defines the actual layout and type of the commands. |
|
20 | 20 | <!--This header contains the command ids for the menus provided by the shell. --> |
21 | 21 | <Extern href="vsshlids.h" /> |
22 | 22 |
|
| 23 | + <!--This header contains the command ids for the VS Debug Menu. --> |
| 24 | + <Extern href="vsdebugguids.h"/> |
| 25 | + <Extern href="VsDbgCmd.h"/> |
| 26 | + |
23 | 27 | <!--The Commands section is where commands, menus, and menu groups are defined. |
24 | 28 | This section uses a Guid to identify the package that provides the command defined inside it. --> |
25 | 29 | <Commands package="guidRemoteDebuggerLauncherPackage"> |
|
36 | 40 | group as the part of a menu contained between two lines. The parent of a group |
37 | 41 | must be a menu. --> |
38 | 42 | <Menus> |
| 43 | + <!-- Defines the submenu holding all commands (Tools menu) --> |
39 | 44 | <Menu guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidToolsItem" priority="0x0100" type="Menu"> |
40 | 45 | <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsItem" /> |
41 | 46 | <CommandFlag>DynamicVisibility</CommandFlag> |
42 | 47 | <Strings> |
43 | 48 | <ButtonText>Remote Debugger Launcher</ButtonText> |
44 | 49 | </Strings> |
45 | 50 | </Menu> |
| 51 | + |
| 52 | + <!-- Defines the submenu holding selected commands (Debug menu) --> |
| 53 | + <Menu guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidDebug" priority="0x0100" type="Menu"> |
| 54 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDebug" /> |
| 55 | + <CommandFlag>DynamicVisibility</CommandFlag> |
| 56 | + <Strings> |
| 57 | + <ButtonText>Linux Remote Targets</ButtonText> |
| 58 | + </Strings> |
| 59 | + </Menu> |
46 | 60 | </Menus> |
47 | 61 |
|
48 | 62 | <Groups> |
49 | 63 | <!-- Group to be shown in the VS Tools Menu, holding just one submenu --> |
50 | 64 | <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsItem" priority="0x0600"> |
51 | 65 | <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS" /> |
52 | 66 | </Group> |
53 | | - <!-- Group holding all commands from the extension --> |
54 | | - <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDeployCommands" priority="0x0100"> |
| 67 | + <!-- Group holding all deploy commands (Tools menu) --> |
| 68 | + <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsDeployCommands" priority="0x0100"> |
55 | 69 | <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidToolsItem" /> |
56 | 70 | </Group> |
57 | | - <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidSetupCommands" priority="0x0101"> |
| 71 | + <!-- Group holding all setup commands (Tools menu) --> |
| 72 | + <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsSetupCommands" priority="0x0101"> |
58 | 73 | <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidToolsItem" /> |
59 | 74 | </Group> |
60 | | - </Groups> |
61 | 75 |
|
| 76 | + <!-- Group to be shown in the VS Debug Menu, holding just one submenu --> |
| 77 | + <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDebug" priority="0x0600"> |
| 78 | + <Parent guid="guidVSDebugGroup" id="IDM_DEBUG_MENU" /> |
| 79 | + </Group> |
| 80 | + <!-- Group holding all deploy commands (Debug Menu) --> |
| 81 | + <Group guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDebugDeployCommands" priority="0x0100"> |
| 82 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidDebug" /> |
| 83 | + </Group> |
| 84 | + </Groups> |
62 | 85 |
|
63 | 86 | <!--Buttons section. --> |
64 | 87 | <!--This section defines the elements the user can interact with, like a menu command or a button or combo box in a toolbar. --> |
65 | 88 | <Buttons> |
66 | | - <!--To define a menu group you have to specify its ID, the parent menu and its display priority. |
67 | | - The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use |
68 | | - the CommandFlag node. |
69 | | - You can add more than one CommandFlag node e.g.: |
70 | | - <CommandFlag>DefaultInvisible</CommandFlag> |
71 | | - <CommandFlag>DynamicVisibility</CommandFlag> |
72 | | - If you do not want an image next to your command, remove the Icon node /> --> |
73 | 89 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidDeployOutputCommand" priority="0x0100" type="Button"> |
74 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDeployCommands" /> |
| 90 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsDeployCommands" /> |
75 | 91 | <Icon guid="guidImages" id="bmpDeployOutput" /> |
76 | 92 | <Strings> |
77 | 93 | <ButtonText>Deploy remote target</ButtonText> |
78 | 94 | </Strings> |
79 | 95 | </Button> |
80 | 96 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidCleanOutputCommand" priority="0x0101" type="Button"> |
81 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDeployCommands" /> |
| 97 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsDeployCommands" /> |
82 | 98 | <Icon guid="guidImages" id="bmpCleanOutput" /> |
83 | 99 | <Strings> |
84 | 100 | <ButtonText>Clean remote target path</ButtonText> |
85 | 101 | </Strings> |
86 | 102 | </Button> |
87 | 103 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidInstallDebugger" priority="0x0100" type="Button"> |
88 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidSetupCommands" /> |
| 104 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsSetupCommands" /> |
89 | 105 | <Icon guid="guidImages" id="bmpInstallDebugger" /> |
90 | 106 | <Strings> |
91 | 107 | <ButtonText>Install VS Code remote debugger</ButtonText> |
92 | 108 | </Strings> |
93 | 109 | </Button> |
94 | 110 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidInstallDotnet" priority="0x0101" type="Button"> |
95 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidSetupCommands" /> |
| 111 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsSetupCommands" /> |
96 | 112 | <Icon guid="guidImages" id="bmpInstallDotnet" /> |
97 | 113 | <Strings> |
98 | 114 | <ButtonText>Install .NET runtime</ButtonText> |
99 | 115 | </Strings> |
100 | 116 | </Button> |
101 | 117 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidSetupSshCommand" priority="0x0102" type="Button"> |
102 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidSetupCommands" /> |
| 118 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsSetupCommands" /> |
103 | 119 | <Icon guid="guidImages" id="bmpSetupSsh" /> |
104 | 120 | <Strings> |
105 | 121 | <ButtonText>Setup SSH</ButtonText> |
106 | 122 | </Strings> |
107 | 123 | </Button> |
108 | 124 | <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidSetupHttpsCommand" priority="0x0102" type="Button"> |
109 | | - <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidSetupCommands" /> |
| 125 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidToolsSetupCommands" /> |
110 | 126 | <Icon guid="guidImages" id="bmpSetupHttps" /> |
111 | 127 | <Strings> |
112 | 128 | <ButtonText>Setup HTTPS</ButtonText> |
113 | 129 | </Strings> |
114 | 130 | </Button> |
| 131 | + |
| 132 | + <!--Buttons in the Debug menu. --> |
| 133 | + <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidDeployOutputCommand" priority="0x0100" type="Button"> |
| 134 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDebugDeployCommands" /> |
| 135 | + <Icon guid="guidImages" id="bmpDeployOutput" /> |
| 136 | + <Strings> |
| 137 | + <ButtonText>Deploy remote target</ButtonText> |
| 138 | + </Strings> |
| 139 | + </Button> |
| 140 | + <Button guid="guidRemoteDebuggerLauncherPackageCmdSet" id="cmdidCleanOutputCommand" priority="0x0101" type="Button"> |
| 141 | + <Parent guid="guidRemoteDebuggerLauncherPackageCmdSet" id="groupidDebugDeployCommands" /> |
| 142 | + <Icon guid="guidImages" id="bmpCleanOutput" /> |
| 143 | + <Strings> |
| 144 | + <ButtonText>Clean remote target path</ButtonText> |
| 145 | + </Strings> |
| 146 | + </Button> |
115 | 147 | </Buttons> |
116 | 148 |
|
117 | 149 | <!--The bitmaps section is used to define the bitmaps that are used for the commands.--> |
118 | 150 | <Bitmaps> |
119 | | - <!-- The bitmap id is defined in a way that is a little bit different from the others: |
120 | | - the declaration starts with a guid for the bitmap strip, then there is the resource id of the |
121 | | - bitmap strip containing the bitmaps and then there are the numeric ids of the elements used |
122 | | - inside a button definition. An important aspect of this declaration is that the element id must be the actual index (1-based) of the bitmap inside the bitmap strip. --> |
123 | 151 | <Bitmap guid="guidImages" href="Resources\Commands.png" usedList="bmpDeployOutput, bmpCleanOutput, bmpInstallDebugger, bmpInstallDotnet, bmpSetupSsh, bmpSetupHttps" /> |
124 | 152 | </Bitmaps> |
125 | 153 | </Commands> |
126 | 154 |
|
127 | 155 | <VisibilityConstraints> |
128 | 156 | <VisibilityItem guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidToolsItem" context="UICONTEXT_SolutionExistsAndNotBuildingAndNotDebugging"></VisibilityItem> |
| 157 | + <VisibilityItem guid="guidRemoteDebuggerLauncherPackageCmdSet" id="menuidDebug" context="UICONTEXT_SolutionExistsAndNotBuildingAndNotDebugging"></VisibilityItem> |
129 | 158 | </VisibilityConstraints> |
130 | 159 |
|
131 | 160 | <Symbols> |
|
135 | 164 | <!-- This is the guid used to group the menu commands together --> |
136 | 165 | <GuidSymbol name="guidRemoteDebuggerLauncherPackageCmdSet" value="{67dde3fd-abea-469b-939f-02a3178c91e7}"> |
137 | 166 | <IDSymbol name="menuidToolsItem" value="0x1000" /> |
| 167 | + <IDSymbol name="menuidDebug" value="0x1001" /> |
138 | 168 | <IDSymbol name="groupidToolsItem" value="0x1010" /> |
139 | | - <IDSymbol name="groupidDeployCommands" value="0x1020" /> |
140 | | - <IDSymbol name="groupidSetupCommands" value="0x1021" /> |
| 169 | + <IDSymbol name="groupidDebug" value="0x1011" /> |
| 170 | + <IDSymbol name="groupidToolsDeployCommands" value="0x1020" /> |
| 171 | + <IDSymbol name="groupidToolsSetupCommands" value="0x1021" /> |
| 172 | + <IDSymbol name="groupidDebugDeployCommands" value="0x1022" /> |
141 | 173 | <IDSymbol name="cmdidDeployOutputCommand" value="0x0100" /> |
142 | 174 | <IDSymbol name="cmdidCleanOutputCommand" value="0x0101" /> |
143 | 175 | <IDSymbol name="cmdidInstallDebugger" value="0x0102" /> |
|
0 commit comments