Skip to content

Commit 282d17c

Browse files
Merge pull request #262 from X-Sharp/master
Integrates suggested change from #251
2 parents 5459846 + 2cd5834 commit 282d17c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public async Task<bool> TryRemoveAsync()
5858

5959
if (solution != null)
6060
{
61-
GetItemInfo(out IVsHierarchy hierarchy, out _, out _);
62-
63-
if (hierarchy is IVsSolution ivsSolution)
61+
GetItemInfo(out IVsHierarchy folderHierarchy, out _, out _);
62+
solution.GetItemInfo(out IVsHierarchy solutionHierarchy, out _, out _);
63+
if (solutionHierarchy is IVsSolution ivsSolution)
6464
{
65-
int hr = ivsSolution.CloseSolutionElement(0, hierarchy, 0);
65+
int hr = ivsSolution.CloseSolutionElement(0, folderHierarchy, 0);
6666
return hr == VSConstants.S_OK;
6767
}
6868
}

0 commit comments

Comments
 (0)