From 6cdc02ec9978bc23bd2f02663bfdffdb23db6fc6 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Sun, 12 Oct 2025 14:09:25 +1000 Subject: [PATCH] handle array type --- .../Features/CodeEditor/SymbolTooltips/Common.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SymbolTooltips/Common.cs b/src/SharpIDE.Godot/Features/CodeEditor/SymbolTooltips/Common.cs index 7e249ad..df0b0ae 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SymbolTooltips/Common.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SymbolTooltips/Common.cs @@ -358,6 +358,7 @@ public static partial class SymbolInfoComponents {SpecialType: not SpecialType.None} => label.AddSpecialType(symbol), INamedTypeSymbol namedTypeSymbol => label.AddNamedType(namedTypeSymbol), ITypeParameterSymbol typeParameterSymbol => label.AddTypeParameter(typeParameterSymbol), + IArrayTypeSymbol arrayTypeSymbol => label.AddArrayType(arrayTypeSymbol), _ => label.AddUnknownType(symbol) }; } @@ -370,6 +371,13 @@ public static partial class SymbolInfoComponents label.Pop(); return label; } + + private static RichTextLabel AddArrayType(this RichTextLabel label, IArrayTypeSymbol symbol) + { + label.AddType(symbol.ElementType); + label.AddText("[]"); + return label; + } private static RichTextLabel AddSpecialType(this RichTextLabel label, ITypeSymbol symbol) {