Get flat project list

This commit is contained in:
Matt Parker
2025-08-07 18:37:34 +10:00
parent 082a3a6bbf
commit d544f13b4b
4 changed files with 36 additions and 16 deletions

View File

@@ -1,8 +1,19 @@
@using SharpIDE.Application.Features.Run
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
@inject RunService RunService
<MudStack Style="height: 100%">
<MudText>Run</MudText>
@foreach(var projects in SolutionModel.AllProjects)
{
<MudButton OnClick="@(async () => await RunService.RunProject(projects))" Variant="Variant.Filled" Color="Color.Primary" Style="margin: 4px;">
<MudText>@projects.Name</MudText>
</MudButton>
}
</MudStack>
@code {
[Parameter, EditorRequired]
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
}

View File

@@ -71,7 +71,7 @@
@if (_solutionFilePath is not null)
{
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Run)">
<RunPanel />
<RunPanel SolutionModel="@_solutionModel" />
</DisplayNoneComponent>
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Build)">
<TerminalOutputDisplay />