diff --git a/Common/Product/SharedProject/HierarchyNode.cs b/Common/Product/SharedProject/HierarchyNode.cs index 95cc335ca..414337d31 100644 --- a/Common/Product/SharedProject/HierarchyNode.cs +++ b/Common/Product/SharedProject/HierarchyNode.cs @@ -929,9 +929,8 @@ public virtual void Remove(bool removeFromStorage) { RaiseOnItemRemoved(documentToRemove, filesToBeDeleted); - // When we don't call this it behaves properly also in Solution Explorer search result set // Notify hierarchy event listeners that items have been invalidated - //ProjectMgr.OnInvalidateItems(this); + ProjectMgr.OnInvalidateItems(this); // Dispose the node now that is deleted. this.Dispose(true); @@ -996,8 +995,12 @@ internal void RemoveNonDocument(bool removeFromStorage) { ProjectMgr.OnItemDeleted(this); // Remove child if any before removing from the hierarchy - for (HierarchyNode child = this.FirstChild; child != null; child = child.NextSibling) { + HierarchyNode child = this.FirstChild; + while (child != null) { + // Need to read NextSibling before calling Remove + var next = child.NextSibling; child.Remove(removeFromStorage); + child = next; } // the project node has no parentNode diff --git a/Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest b/Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest index 1e76be19f..c33526804 100644 --- a/Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest +++ b/Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest @@ -1,6 +1,6 @@ - + Node.js Tools - Interactive Window Node.js Tools - Interactive Window. http://go.microsoft.com/fwlink/?LinkId=785971 diff --git a/Nodejs/Product/Nodejs/source.extension.vsixmanifest b/Nodejs/Product/Nodejs/source.extension.vsixmanifest index ae613ec06..3524ca282 100644 --- a/Nodejs/Product/Nodejs/source.extension.vsixmanifest +++ b/Nodejs/Product/Nodejs/source.extension.vsixmanifest @@ -1,6 +1,6 @@ - + Node.js Tools Provides support for editing and debugging Node.js programs. http://go.microsoft.com/fwlink/?LinkId=785971 diff --git a/Nodejs/Product/Profiling/source.extension.vsixmanifest b/Nodejs/Product/Profiling/source.extension.vsixmanifest index 5220b3627..21711873e 100644 --- a/Nodejs/Product/Profiling/source.extension.vsixmanifest +++ b/Nodejs/Product/Profiling/source.extension.vsixmanifest @@ -1,6 +1,6 @@ - + Node.js Tools - Profiling Provides support for profiling Node.js projects http://go.microsoft.com/fwlink/?LinkId=785971