Skip to content

Fix for Step 2 of the Add a Command section #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/extensibility/adding-a-submenu-to-a-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ This walkthrough builds on the demonstration in [Adding a Menu to the Visual Stu
2. Add the sub-command. Find the command constructor. Add the following lines just after the call to the `AddCommand` method.

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

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