diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-12 13:34:12 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-12 13:34:12 -0400 |
| commit | 82c8a0b2cb1373afeb9f87339cc3aaccdffb31ff (patch) | |
| tree | 156ef3abf4ab47c82e154e20b7c5bc19ba3df0e6 /src/server/documentation.odin | |
| parent | 3499fc72369763f6b20e39844a274c32e05f9d80 (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.odin | 2 |
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) |