Files
SharpIDE/src/SharpIDE.Godot/Features/CodeEditor/SymbolTooltips/DiagnosticTooltip.cs
2025-12-07 18:44:39 +10:00

17 lines
471 B
C#

using Godot;
using SharpIDE.Application.Features.Analysis;
namespace SharpIDE.Godot.Features.CodeEditor;
public static partial class SymbolInfoComponents
{
public static RichTextLabel GetDiagnostic(SharpIdeDiagnostic diagnostic)
{
var label = new RichTextLabel();
label.PushColor(CachedColors.White);
label.PushFontSize(14);
label.AddText(diagnostic.Diagnostic.GetMessage());
label.Pop();
return label;
}
}