Skip to content

Commit

Permalink
Pass legacy root node ProjectTreeFlags
Browse files Browse the repository at this point in the history
This fixes a regression from the dependency tree rewrite. Implementations of the legacy extension point `IProjectDependenciesSubTreeProvider.CreateRootDependencyNode` return an `IDependencyModel` holding various values to be applied to the group's node. One such value is `IDependencyModel.Flags` which should be applied to the group node. This change fixes that.
  • Loading branch information
drewnoakes committed Jun 26, 2023
1 parent d007256 commit 448e845
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ProviderState(IProjectDependenciesSubTreeProvider provider)
normalGroupIcon: rootNode.Icon.ToProjectSystemType(),
warningGroupIcon: rootNode.UnresolvedIcon.ToProjectSystemType(),
errorGroupIcon: rootNode.UnresolvedIcon.ToProjectSystemType(),
groupNodeFlags: ProjectTreeFlags.Empty);
groupNodeFlags: rootNode.Flags);

_snapshot = ImmutableDictionary<DependencyGroupType, ImmutableArray<IDependency>>.Empty
.Add(_dependencyType, ImmutableArray<IDependency>.Empty);
Expand Down

0 comments on commit 448e845

Please sign in to comment.