From 82c8a0b2cb1373afeb9f87339cc3aaccdffb31ff Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 12 Jul 2025 13:34:12 -0400 Subject: Add comments when hovering basic struct fields and no longer show the underlying type --- src/server/documentation.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/documentation.odin') diff --git a/src/server/documentation.odin b/src/server/documentation.odin index 733851b..df0b523 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -174,7 +174,7 @@ get_short_signature :: proc(ast_context: ^AstContext, symbol: Symbol) -> string strings.write_string(&sb, pointer_prefix) build_string_node(v.ident, &sb, false) } - if symbol.type == .Field && symbol.comment != "" { + if symbol.comment != "" { fmt.sbprintf(&sb, " %s", symbol.comment) } return strings.to_string(sb) -- cgit v1.2.3