Skip to content

Commit

Permalink
Merge pull request #3844 from Vogel612/whoopsie-cleanup
Browse files Browse the repository at this point in the history
Emergency fix for Code Explorer commands.
  • Loading branch information
retailcoder committed Mar 15, 2018
2 parents 91f0a31 + 98d275b commit 443a039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rubberduck.Main/Root/RubberduckIoCInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ private Type[] ToolsMenuItems()

private static void RegisterCodeExplorerViewModelWithCodeExplorerCommands(IWindsorContainer container)
{
var codeExplorerCommands = Assembly.GetExecutingAssembly().GetTypes()
// Assumption: All Commands are defined in the same assembly as CommandBase
var codeExplorerCommands = Assembly.GetAssembly(typeof(CommandBase)).GetTypes()
.Where(type => type.IsClass && type.Namespace != null &&
type.CustomAttributes.Any(a => a.AttributeType == typeof(CodeExplorerCommandAttribute)));
container.Register(Component.For<CodeExplorerViewModel>()
Expand Down

0 comments on commit 443a039

Please sign in to comment.