Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Jan 30, 2023
1 parent c952414 commit 29611d1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/Build/Logging/LiveLogger/LiveLoggerProjectNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ public void Log()
// Project
ANSIBuilder.Formatting.Dim("Project: ") +
// Project file path with color
$"{ANSIBuilder.Formatting.Color(ANSIBuilder.Formatting.Bold(GetUnambiguousPath(ProjectPath)), Finished ? ANSIBuilder.Formatting.ForegroundColor.Green : ANSIBuilder.Formatting.ForegroundColor.Default )} [{TargetFramework ?? "*"}]",
$"{ANSIBuilder.Formatting.Color(ANSIBuilder.Formatting.Bold(GetUnambiguousPath(ProjectPath)), Finished ? ANSIBuilder.Formatting.ForegroundColor.Green : ANSIBuilder.Formatting.ForegroundColor.Default)} [{TargetFramework ?? "*"}]",
$"({MessageCount} Messages, {WarningCount} Warnings, {ErrorCount} Errors)",
Console.WindowWidth
);
Console.WindowWidth);
// Create or update line
if (Line is null)
{
Expand Down Expand Up @@ -123,8 +122,16 @@ public void Log()
// Messages, warnings and errors
foreach (LiveLoggerMessageNode node in AdditionalDetails)
{
if (Finished && node.Type == LiveLoggerMessageNode.MessageType.HighPriorityMessage) continue;
if (node.Line is null) node.Line = LiveLoggerBuffer.WriteNewLineAfter(Line!.Id, "Message");
if (Finished && node.Type == LiveLoggerMessageNode.MessageType.HighPriorityMessage)
{
continue;
}

if (node.Line is null)
{
node.Line = LiveLoggerBuffer.WriteNewLineAfter(Line!.Id, "Message");
}

node.Log();
}
}
Expand Down

0 comments on commit 29611d1

Please sign in to comment.