Create problems panel

This commit is contained in:
Matt Parker
2025-08-16 14:06:44 +10:00
parent f4c2153854
commit eecc0ed388
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
<MudStack Style="height: 100%">
</MudStack>
@code {
[Parameter, EditorRequired]
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
}

View File

@@ -54,6 +54,7 @@
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="padding: 4px; height: 100%">
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" OnClick="@DrawerToggle" Selected="@_drawerOpen" />
<MudSpacer />
<SidebarIconButton Icon="@Icons.Material.Filled.ReportProblem" Text="Problems" OnClick="@ClickProblemsPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Problems)" />
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" OnClick="@ClickRunPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Run)" />
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Build" OnClick="@ClickBuildPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Build)" />
</MudStack>
@@ -80,6 +81,9 @@
<div class="mud-elevation-24" style="height: 30%; position:relative">
@if (_solutionFilePath is not null)
{
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Problems)">
<ProblemsPanel SolutionModel="@_solutionModel" />
</DisplayNoneComponent>
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Run)">
<RunPanel SolutionModel="@_solutionModel"/>
</DisplayNoneComponent>
@@ -107,6 +111,7 @@
private string MainContentHeight => _bottomDrawerOpen ? "70%" : "100%";
private void ClickProblemsPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Problems);
private void ClickRunPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Run);
private void ClickBuildPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Build);
private void SwitchOrToggleBottomPanel(BottomPanelType bottomPanelType)

View File

@@ -3,5 +3,6 @@
public enum BottomPanelType
{
Run,
Build
Build,
Problems
}