open terminal on build
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<MudStack Class="ml-2 mr-4 mb-2">
|
<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.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.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>
|
</MudStack>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
@@ -94,6 +94,7 @@
|
|||||||
private async Task RestoreSolution() => await MsBuildSolution(BuildType.Restore);
|
private async Task RestoreSolution() => await MsBuildSolution(BuildType.Restore);
|
||||||
private async Task MsBuildSolution(BuildType buildType)
|
private async Task MsBuildSolution(BuildType buildType)
|
||||||
{
|
{
|
||||||
|
if (AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore) _terminalDrawerOpen = true;
|
||||||
await BuildService.MsBuildSolutionAsync(_solutionFilePath!, buildType);
|
await BuildService.MsBuildSolutionAsync(_solutionFilePath!, buildType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,4 +10,5 @@ public class IdeSettings
|
|||||||
{
|
{
|
||||||
public bool AutoOpenLastSolution { get; set; }
|
public bool AutoOpenLastSolution { get; set; }
|
||||||
public bool AutoOpenTerminalOnLaunch { get; set; }
|
public bool AutoOpenTerminalOnLaunch { get; set; }
|
||||||
|
public bool OpenTerminalOnBuildRebuildRestore { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user