Skip to content

Commit 5e79359

Browse files
committed
Add a filter to exclude groups that don't have a project node at all.
1 parent 7067cf8 commit 5e79359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ private void HandleStateChanged(object sender, ParserStateEventArgs e)
293293

294294
var userDeclarations = _state.DeclarationFinder.AllUserDeclarations
295295
.GroupBy(declaration => declaration.ProjectId)
296+
.Where(grouping => grouping.Any(declaration => declaration.DeclarationType == DeclarationType.Project))
296297
.ToList();
297298

298299
if (userDeclarations.Any(

0 commit comments

Comments
 (0)