Skip to content

Commit f94335a

Browse files
author
Greg Van Liew
authored
Merge pull request #576 from Iceazuk/patch-1
Fix for Step 2 of the Add a Command section
2 parents 2e16bb4 + 58acf64 commit f94335a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/extensibility/adding-a-submenu-to-a-menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This walkthrough builds on the demonstration in [Adding a Menu to the Visual Stu
9393
2. Add the sub-command. Find the command constructor. Add the following lines just after the call to the `AddCommand` method.
9494

9595
```csharp
96-
CommandID subCommandID = new CommandID(CommandSet, (int)TestCommandPackageGuids.cmdidTestSubCmd);
96+
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
9797
MenuCommand subItem = new MenuCommand(
9898
new EventHandler(SubItemCallback), subCommandID);
9999
commandService.AddCommand(subItem);
@@ -157,4 +157,4 @@ This walkthrough builds on the demonstration in [Adding a Menu to the Visual Stu
157157

158158
## See Also
159159
[Adding a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md)
160-
[Commands, Menus, and Toolbars](../extensibility/internals/commands-menus-and-toolbars.md)
160+
[Commands, Menus, and Toolbars](../extensibility/internals/commands-menus-and-toolbars.md)

0 commit comments

Comments
 (0)