global event for projects running changed

This commit is contained in:
Matt Parker
2025-08-08 00:14:26 +10:00
parent 85d8a129a2
commit f220e31b36
3 changed files with 24 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
using Ardalis.GuardClauses;
using AsyncReadProcess.Common;
using AsyncReadProcess;
using SharpIDE.Application.Features.Events;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Application.Features.Run;
@@ -39,8 +40,11 @@ public class RunService
}
});
project.Running = true;
GlobalEvents.InvokeProjectsRunningChanged();
await process.WaitForExitAsync();
project.Running = false;
GlobalEvents.InvokeProjectsRunningChanged();
Console.WriteLine("Project ran successfully.");
}