Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fixes #419 (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
conniey authored May 11, 2017
1 parent 821af5c commit 55cc989
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ApiPort.VisualStudio/AnalyzeMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task AnalyzeSelectedProjectsAsync(bool includeDependencies)

public async void SolutionContextMenuItemCallback(object sender, EventArgs e)
{
await AnalyzeProjectsAsync(_dte.Solution.GetProjects().ToList());
await AnalyzeProjectsAsync(_dte.Solution.GetProjects().Where(x => x.IsDotNetProject()).ToList());
}

private async Task AnalyzeProjectsAsync(ICollection<Project> projects)
Expand Down Expand Up @@ -102,7 +102,8 @@ private void ContextMenuItemBeforeQueryStatus(object sender, IEnumerable<Project
return;
}

menuItem.Visible = projects.Any() && projects.All(p => p.IsDotNetProject());

menuItem.Visible = projects.Any(p => p.IsDotNetProject());

// Only need to check dependents if menuItem is still visible
if (checkDependencies && menuItem.Visible)
Expand Down

0 comments on commit 55cc989

Please sign in to comment.