refactor
This commit is contained in:
@@ -115,25 +115,14 @@ public partial class IdeRoot : Control
|
|||||||
_runMenuPopup.Popup();
|
_runMenuPopup.Popup();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void OnBuildSlnButtonPressed()
|
private void OnBuildSlnButtonPressed() => MsBuild(BuildType.Build);
|
||||||
|
private void OnRebuildSlnButtonPressed() => MsBuild(BuildType.Rebuild);
|
||||||
|
private void OnCleanSlnButtonPressed() => MsBuild(BuildType.Clean);
|
||||||
|
private void OnRestoreSlnButtonPressed() => MsBuild(BuildType.Restore);
|
||||||
|
private async void MsBuild(BuildType buildType)
|
||||||
{
|
{
|
||||||
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Build);
|
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Build);
|
||||||
await _buildService.MsBuildAsync(_solutionExplorerPanel.SolutionModel.FilePath);
|
await _buildService.MsBuildAsync(_solutionExplorerPanel.SolutionModel.FilePath, buildType);
|
||||||
}
|
|
||||||
private async void OnRebuildSlnButtonPressed()
|
|
||||||
{
|
|
||||||
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Build);
|
|
||||||
await _buildService.MsBuildAsync(_solutionExplorerPanel.SolutionModel.FilePath, BuildType.Rebuild);
|
|
||||||
}
|
|
||||||
private async void OnCleanSlnButtonPressed()
|
|
||||||
{
|
|
||||||
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Build);
|
|
||||||
await _buildService.MsBuildAsync(_solutionExplorerPanel.SolutionModel.FilePath, BuildType.Clean);
|
|
||||||
}
|
|
||||||
private async void OnRestoreSlnButtonPressed()
|
|
||||||
{
|
|
||||||
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Build);
|
|
||||||
await _buildService.MsBuildAsync(_solutionExplorerPanel.SolutionModel.FilePath, BuildType.Restore);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task OnSolutionExplorerPanelOnFileSelected(SharpIdeFile file, SharpIdeFileLinePosition? fileLinePosition)
|
private async Task OnSolutionExplorerPanelOnFileSelected(SharpIdeFile file, SharpIdeFileLinePosition? fileLinePosition)
|
||||||
|
|||||||
Reference in New Issue
Block a user