aboutsummaryrefslogtreecommitdiff
path: root/src/server/documentation.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-12 13:34:12 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-12 13:34:12 -0400
commit82c8a0b2cb1373afeb9f87339cc3aaccdffb31ff (patch)
tree156ef3abf4ab47c82e154e20b7c5bc19ba3df0e6 /src/server/documentation.odin
parent3499fc72369763f6b20e39844a274c32e05f9d80 (diff)
Add comments when hovering basic struct fields and no longer show the underlying type
Diffstat (limited to 'src/server/documentation.odin')
-rw-r--r--src/server/documentation.odin2
1 files changed, 1 insertions, 1 deletions
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)