diff --git a/ILSpy/Analyzers/AnalyzerSearchTreeNode.cs b/ILSpy/Analyzers/AnalyzerSearchTreeNode.cs index 23393e821..8e37d22fb 100644 --- a/ILSpy/Analyzers/AnalyzerSearchTreeNode.cs +++ b/ILSpy/Analyzers/AnalyzerSearchTreeNode.cs @@ -39,7 +39,7 @@ namespace ICSharpCode.ILSpy.Analyzers this.LazyLoading = true; } - public override object Text => analyzer.Text; + public override object Text => analyzer.Text + (Children.Count > 0 ? " (" + Children.Count + ")" : ""); public override object Icon => Images.Search; diff --git a/ILSpy/TreeNodes/ThreadingSupport.cs b/ILSpy/TreeNodes/ThreadingSupport.cs index 6e18da961..ae602b625 100644 --- a/ILSpy/TreeNodes/ThreadingSupport.cs +++ b/ILSpy/TreeNodes/ThreadingSupport.cs @@ -82,6 +82,7 @@ namespace ICSharpCode.ILSpy.TreeNodes delegate { if (loadChildrenTask == thisTask) { node.Children.RemoveAt(node.Children.Count - 1); // remove 'Loading...' + node.RaisePropertyChanged(nameof(node.Text)); } if (continuation.Exception != null) { // observe exception even when task isn't current if (loadChildrenTask == thisTask) {