aboutsummaryrefslogtreecommitdiff
path: root/src/server/hover.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-25 22:43:37 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-27 20:10:22 -0400
commit9bc4a0362e74c0d5f1ea10459fa9d7cb24d0ac9d (patch)
treecbe3f7deac4da806d1f191f88721896e1e788bae /src/server/hover.odin
parent747bd0539895fdf2ef9f47ba35238e86f3021fcc (diff)
Correct tests after the refactor and add comment docs to struct field completions
Diffstat (limited to 'src/server/hover.odin')
-rw-r--r--src/server/hover.odin5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin
index 79c97c1..f8b73e9 100644
--- a/src/server/hover.odin
+++ b/src/server/hover.odin
@@ -34,10 +34,11 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC
}
}
+ cat := concatenate_symbol_information(ast_context, symbol)
- if symbol.signature != "" {
+ if cat != "" {
content.kind = "markdown"
- content.value = fmt.tprintf("```odin\n%v\n```%v", symbol.signature, symbol.doc)
+ content.value = fmt.tprintf("```odin\n%v\n```%v", cat, symbol.doc)
} else {
content.kind = "plaintext"
}