open terminal on build

This commit is contained in:
Matt Parker
2025-08-02 23:14:15 +10:00
parent 09d9e6c152
commit 22f11a5587
3 changed files with 3 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
<MudStack Class="ml-2 mr-4 mb-2">
<MudSwitch @bind-Value="@AppState.IdeSettings.AutoOpenLastSolution" Label="Automatically open last solution" Color="Color.Primary" />
<MudSwitch @bind-Value="@AppState.IdeSettings.AutoOpenTerminalOnLaunch" Label="Automatically open terminal when SharpIDE starts" Color="Color.Primary" />
<MudSwitch @bind-Value="@AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore" Label="Open the terminal on Build, Rebuild, Restore" Color="Color.Primary" />
</MudStack>
@code {

View File

@@ -94,6 +94,7 @@
private async Task RestoreSolution() => await MsBuildSolution(BuildType.Restore);
private async Task MsBuildSolution(BuildType buildType)
{
if (AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore) _terminalDrawerOpen = true;
await BuildService.MsBuildSolutionAsync(_solutionFilePath!, buildType);
}

View File

@@ -10,4 +10,5 @@ public class IdeSettings
{
public bool AutoOpenLastSolution { get; set; }
public bool AutoOpenTerminalOnLaunch { get; set; }
public bool OpenTerminalOnBuildRebuildRestore { get; set; }
}