problems tree view
This commit is contained in:
@@ -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%">
|
||||||
@foreach (var project in SolutionModel.AllProjects)
|
<MudTreeView T="string" Dense="true" ExpandOnClick="true">
|
||||||
{
|
@foreach (var project in SolutionModel.AllProjects)
|
||||||
<ProjectProblemComponent ProjectModel="@project" />
|
{
|
||||||
}
|
<ProjectProblemComponent ProjectModel="@project"/>
|
||||||
|
}
|
||||||
|
</MudTreeView>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user