瀏覽代碼

Fix typos in build messages when waiting to attach a debugger (#16701)

Stephen Monaco 1 年之前
父節點
當前提交
d522ce47a2
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

+ 4 - 4
src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

@@ -115,22 +115,22 @@ namespace Avalonia.Build.Tasks
                 // documentation, on not windows platform Debugger.Launch() always return true without running a debugger.
                 if (System.Diagnostics.Debugger.Launch())
                 {
-                    // Set timeout at 1 minut.
+                    // Set timeout at 1 minute.
                     var time = new System.Diagnostics.Stopwatch();
                     var timeout = TimeSpan.FromMinutes(1);
                     time.Start();
 
-                    // wait for the debugger to be attacked or timeout.
+                    // wait for the debugger to be attached or timeout.
                     while (!System.Diagnostics.Debugger.IsAttached && time.Elapsed < timeout)
                     {
-                        engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Wating attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High);
+                        engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Waiting to attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High);
                         System.Threading.Thread.Sleep(100);
                     }
 
                     time.Stop();
                     if (time.Elapsed >= timeout)
                     {
-                        engine.LogMessage("Wating attach debugger timeout.", MessageImportance.Normal);
+                        engine.LogMessage("Waiting to attach debugger has timed out.", MessageImportance.Normal);
                     }
                 }
                 else