private void RegisterCommandMenuService() { IVsRegisterPriorityCommandTarget commandRegistry = GetService(typeof(SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget; _thirdPartyEditorCommands = new ClearableMenuCommandService(this); uint cookie = 0; commandRegistry.RegisterPriorityCommandTarget(0, _thirdPartyEditorCommands, out cookie); }
private void RegisterCommandMenuService() { IVsRegisterPriorityCommandTarget commandRegistry = GetService(typeof (SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget; _thirdPartyEditorCommands = new ClearableMenuCommandService(this); uint cookie = 0; commandRegistry.RegisterPriorityCommandTarget(0, _thirdPartyEditorCommands, out cookie); }