From 4c10ae7cc79d2f8c09a5a27a9a2547ae32c5ac7f Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Fri, 24 Oct 2025 20:46:28 +1000 Subject: [PATCH] another --- src/SharpIDE.Application/Features/Run/RunService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SharpIDE.Application/Features/Run/RunService.cs b/src/SharpIDE.Application/Features/Run/RunService.cs index ee4c4b2..dc99619 100644 --- a/src/SharpIDE.Application/Features/Run/RunService.cs +++ b/src/SharpIDE.Application/Features/Run/RunService.cs @@ -2,6 +2,7 @@ using System.Threading.Channels; using Ardalis.GuardClauses; using AsyncReadProcess; +using Microsoft.Extensions.Logging; using SharpIDE.Application.Features.Debugging; using SharpIDE.Application.Features.Evaluation; using SharpIDE.Application.Features.Events; @@ -10,11 +11,14 @@ using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence; namespace SharpIDE.Application.Features.Run; -public class RunService +public class RunService(ILogger logger) { private readonly ConcurrentDictionary _projectLocks = []; public ConcurrentDictionary> Breakpoints { get; } = []; private Debugger? _debugger; // TODO: Support multiple debuggers for multiple running projects + + private readonly ILogger _logger = logger; + public async Task RunProject(SharpIdeProjectModel project, bool isDebug = false) { Guard.Against.Null(project, nameof(project)); @@ -125,7 +129,7 @@ public class RunService project.InvokeProjectStoppedRunning(); - Console.WriteLine("Project finished running"); + _logger.LogInformation("Process for project {ProjectName} has exited", project.Name); } finally {