problems tree view

This commit is contained in:
Matt Parker
2025-08-17 11:29:20 +10:00
parent de89cfb1e9
commit fa14ec935c
2 changed files with 14 additions and 12 deletions

View File

@@ -1,9 +1,11 @@
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence @using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
<MudStack Style="height: 100%; overflow-y: scroll"> <MudStack Style="height: 100%">
<MudTreeView T="string" Dense="true" ExpandOnClick="true">
@foreach (var project in SolutionModel.AllProjects) @foreach (var project in SolutionModel.AllProjects)
{ {
<ProjectProblemComponent ProjectModel="@project" /> <ProjectProblemComponent ProjectModel="@project"/>
} }
</MudTreeView>
</MudStack> </MudStack>
@code { @code {

View File

@@ -5,13 +5,13 @@
@if (_diagnostics.Length is not 0) @if (_diagnostics.Length is not 0)
{ {
@ProjectModel.Name <MudTreeViewItem T="string" TextTypo="Typo.body2" EndTextTypo="Typo.caption" Expanded="true" Icon="@Icons.Material.Filled.Code" IconColor="Color.Success" Value="@ProjectModel.Name" Text="@ProjectModel.Name" EndText="@($"{_diagnostics.Length} diagnostics")">
@foreach(var diagnostic in _diagnostics) @foreach (var diagnostic in _diagnostics)
{ {
<div> <MudTreeViewItem T="string" TextTypo="Typo.body2" Icon="@Icons.Material.Filled.Folder" IconColor="Color.Primary" Value="@diagnostic.Id" Text="@diagnostic.Id">
<strong>@diagnostic.Id</strong>: @diagnostic.GetMessage() </MudTreeViewItem>
</div>
} }
</MudTreeViewItem>
} }
@code { @code {