Skip to content

Commit 6bab17c

Browse files
Addressed PR feedback.
1 parent 7d555d2 commit 6bab17c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/Solution/SolutionItem.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ internal void Update(IVsHierarchyItem item)
4444
_fullPath = GetFullPath();
4545
_isNonVisibleItem = new Lazy<bool>(() =>
4646
{
47-
if (HierarchyUtilities.TryGetHierarchyProperty(_hierarchy, _itemId, (int)__VSHPROPID.VSHPROPID_IsNonMemberItem, out bool isNonMemberItem)
48-
&& isNonMemberItem)
49-
{
50-
return isNonMemberItem;
51-
}
52-
return false;
47+
return HierarchyUtilities.TryGetHierarchyProperty(_hierarchy, _itemId, (int)__VSHPROPID.VSHPROPID_IsNonMemberItem, out bool isNonMemberItem) && isNonMemberItem;
5348
});
5449
}
5550

@@ -84,7 +79,7 @@ internal void Update(IVsHierarchyItem item)
8479
public IEnumerable<SolutionItem?> Children => _children ??= _item.Children.Select(t => FromHierarchyItem(t));
8580

8681
/// <summary>
87-
/// Returns whether the item is normally visible in soltuion explorer
82+
/// Returns whether the item is normally hidden in solution explorer and only visible when Show All Files is enabled.
8883
/// </summary>
8984
public bool IsNonVisibleItem => _isNonVisibleItem.Value;
9085

0 commit comments

Comments
 (0)