diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PotentialEditorConfigDataSource.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PotentialEditorConfigDataSource.cs index f88227e86c5..27738c9b528 100644 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PotentialEditorConfigDataSource.cs +++ b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PotentialEditorConfigDataSource.cs @@ -58,6 +58,8 @@ protected override void Initialize() { base.Initialize(); + _broadcastBlock = DataflowBlockSlim.CreateBroadcastBlock>(nameFormat: nameof(PotentialEditorConfigDataSource) + "Broadcast {1}"); + IDisposable projectRuleSourceLink = _project.Services.ProjectSubscription.ProjectRuleSource.SourceBlock.LinkToAsyncAction(ProcessProjectChanged, ruleNames: PotentialEditorConfigFiles.SchemaName); IDisposable join = JoinUpstreamDataSources(_project.Services.ProjectSubscription.ProjectRuleSource); @@ -66,7 +68,6 @@ protected override void Initialize() _disposables.AddDisposable(projectRuleSourceLink); _disposables.AddDisposable(join); - _broadcastBlock = DataflowBlockSlim.CreateBroadcastBlock>(nameFormat: nameof(PotentialEditorConfigDataSource) + "Broadcast {1}"); _publicBlock = _broadcastBlock.SafePublicize(); }