17 lines
471 B
C#
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;
|
|
}
|
|
} |