aboutsummaryrefslogtreecommitdiff
path: root/src/server/hover.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-25 21:23:29 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-27 20:10:21 -0400
commit747bd0539895fdf2ef9f47ba35238e86f3021fcc (patch)
treeaed05bd361f2db6f9186ab0eec47db4e9e09d4b5 /src/server/hover.odin
parent4eae668a145df223c6cfc7b8929cdd49d436756d (diff)
Consolidate documentation writing code into new file and base it around symbols
Diffstat (limited to 'src/server/hover.odin')
-rw-r--r--src/server/hover.odin7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin
index e69249b..79c97c1 100644
--- a/src/server/hover.odin
+++ b/src/server/hover.odin
@@ -34,13 +34,10 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC
}
}
- build_procedure_symbol_signature(&symbol, false)
- cat := concatenate_symbol_information(ast_context, symbol, false)
-
- if cat != "" {
+ if symbol.signature != "" {
content.kind = "markdown"
- content.value = fmt.tprintf("```odin\n%v\n```%v", cat, symbol.doc)
+ content.value = fmt.tprintf("```odin\n%v\n```%v", symbol.signature, symbol.doc)
} else {
content.kind = "plaintext"
}