display projects for problems

This commit is contained in:
Matt Parker
2025-09-12 18:21:04 +10:00
parent 598331cc3b
commit 296dd306b4
7 changed files with 28 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
using Godot;
using R3;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Godot.Features.Problems;
@@ -10,5 +11,9 @@ public partial class ProblemsPanelProjectEntry : MarginContainer
public override void _Ready()
{
GetNode<Label>("Label").Text = Project?.Name ?? "NULL";
if (Project is null) return;
Observable.EveryValueChanged(this, s => s.Project.Diagnostics.Count)
.Subscribe(s => Visible = s is not 0);
}
}