Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty dependency group node for external dependencies #9228

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

drewnoakes
Copy link
Member

@drewnoakes drewnoakes commented Aug 15, 2023

Fixes #9227

Implementations of the IProjectDependenciesSubTreeProvider interface may extend the dependencies tree with additional dependency types.

The rewrite in 17.7 introduced a subtle change in bevahiour where removing the last dependency in a group added via this interface would leave the group node visible in the tree.

This change ensures we remove the group altogether when the last item is removed.

Microsoft Reviewers: Open in CodeFlow

Implementations of the `IProjectDependenciesSubTreeProvider` interface may extend the dependencies tree with additional dependency types.

The rewrite in 17.7 introduced a subtle change in bevahiour where removing the last dependency in a group added via this interface would leave the group node visible in the tree.

This change ensures we remove the group altogether when the last item is removed.
@drewnoakes drewnoakes added the Feature-Dependency-Node "Dependencies" node in Solution Explorer that display project, binary & package references label Aug 15, 2023
@drewnoakes drewnoakes added this to the 17.8 milestone Aug 15, 2023
@drewnoakes drewnoakes requested a review from a team as a code owner August 15, 2023 04:02
@drewnoakes drewnoakes merged commit 590946c into dotnet:main Aug 15, 2023
@drewnoakes drewnoakes deleted the prevent-empty-legacy-group-node branch August 15, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Dependency-Node "Dependencies" node in Solution Explorer that display project, binary & package references
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removing last dependency of a IProjectDependenciesSubTreeProvider can leave empty group node in tree
4 participants