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);
}
}

View File

@@ -76,7 +76,7 @@ public partial class IdeRoot : Control
_sharpIdeCodeEdit.Solution = solutionModel;
_bottomPanelManager.Solution = solutionModel;
Callable.From(_solutionExplorerPanel.RepopulateTree).CallDeferred();
RoslynAnalysis.StartSolutionAnalysis(path);
RoslynAnalysis.StartSolutionAnalysis(solutionModel);
var tasks = solutionModel.AllProjects.Select(p => p.MsBuildEvaluationProjectTask).ToList();
await Task.WhenAll(tasks).ConfigureAwait(false);

View File

@@ -10,6 +10,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="ObservableCollections" Version="3.3.4" />
<PackageReference Include="ObservableCollections.R3" Version="3.3.4" />
<PackageReference Include="R3" Version="1.3.0" />
</ItemGroup>
</Project>