Skip to content

Commit 30697ee

Browse files
Merge pull request #1468 from RyanCavanaugh/RemoveFolder
Remove solution folders correctly
2 parents 4816fde + e2c377a commit 30697ee

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Common/Product/SharedProject/HierarchyNode.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,9 +929,8 @@ public virtual void Remove(bool removeFromStorage) {
929929

930930
RaiseOnItemRemoved(documentToRemove, filesToBeDeleted);
931931

932-
// When we don't call this it behaves properly also in Solution Explorer search result set
933932
// Notify hierarchy event listeners that items have been invalidated
934-
//ProjectMgr.OnInvalidateItems(this);
933+
ProjectMgr.OnInvalidateItems(this);
935934

936935
// Dispose the node now that is deleted.
937936
this.Dispose(true);
@@ -996,8 +995,12 @@ internal void RemoveNonDocument(bool removeFromStorage) {
996995
ProjectMgr.OnItemDeleted(this);
997996

998997
// Remove child if any before removing from the hierarchy
999-
for (HierarchyNode child = this.FirstChild; child != null; child = child.NextSibling) {
998+
HierarchyNode child = this.FirstChild;
999+
while (child != null) {
1000+
// Need to read NextSibling before calling Remove
1001+
var next = child.NextSibling;
10001002
child.Remove(removeFromStorage);
1003+
child = next;
10011004
}
10021005

10031006
// the project node has no parentNode

Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
22
<Metadata>
3-
<Identity Id="29102E6C-34F2-4FF1-BA2F-C02ADE3846E8" Version="1.3.0.3" Language="en-US" Publisher="Microsoft" />
3+
<Identity Id="29102E6C-34F2-4FF1-BA2F-C02ADE3846E8" Version="1.3.0.4" Language="en-US" Publisher="Microsoft" />
44
<DisplayName>Node.js Tools - Interactive Window</DisplayName>
55
<Description xml:space="preserve">Node.js Tools - Interactive Window.</Description>
66
<MoreInfo>http://go.microsoft.com/fwlink/?LinkId=785971</MoreInfo>

Nodejs/Product/Nodejs/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
22
<Metadata>
3-
<Identity Id="FE8A8C3D-328A-476D-99F9-2A24B75F8C7F" Version="1.3.0.3" Language="en-US" Publisher="Microsoft" />
3+
<Identity Id="FE8A8C3D-328A-476D-99F9-2A24B75F8C7F" Version="1.3.0.4" Language="en-US" Publisher="Microsoft" />
44
<DisplayName>Node.js Tools</DisplayName>
55
<Description xml:space="preserve">Provides support for editing and debugging Node.js programs.</Description>
66
<MoreInfo>http://go.microsoft.com/fwlink/?LinkId=785971</MoreInfo>

Nodejs/Product/Profiling/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
22
<Metadata>
3-
<Identity Id="B515653F-FB69-4B64-9D3F-F1FCF8421DD0" Version="1.3.0.3" Language="en-US" Publisher="Microsoft" />
3+
<Identity Id="B515653F-FB69-4B64-9D3F-F1FCF8421DD0" Version="1.3.0.4" Language="en-US" Publisher="Microsoft" />
44
<DisplayName>Node.js Tools - Profiling</DisplayName>
55
<Description xml:space="preserve">Provides support for profiling Node.js projects</Description>
66
<MoreInfo>http://go.microsoft.com/fwlink/?LinkId=785971</MoreInfo>

0 commit comments

Comments
 (0)