Skip to content

Commit

Permalink
Addressed PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenRasmussen committed Dec 18, 2022
1 parent 7d555d2 commit 6bab17c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ internal void Update(IVsHierarchyItem item)
_fullPath = GetFullPath();
_isNonVisibleItem = new Lazy<bool>(() =>
{
if (HierarchyUtilities.TryGetHierarchyProperty(_hierarchy, _itemId, (int)__VSHPROPID.VSHPROPID_IsNonMemberItem, out bool isNonMemberItem)
&& isNonMemberItem)
{
return isNonMemberItem;
}
return false;
return HierarchyUtilities.TryGetHierarchyProperty(_hierarchy, _itemId, (int)__VSHPROPID.VSHPROPID_IsNonMemberItem, out bool isNonMemberItem) && isNonMemberItem;
});
}

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

/// <summary>
/// Returns whether the item is normally visible in soltuion explorer
/// Returns whether the item is normally hidden in solution explorer and only visible when Show All Files is enabled.
/// </summary>
public bool IsNonVisibleItem => _isNonVisibleItem.Value;

Expand Down

0 comments on commit 6bab17c

Please sign in to comment.