diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 20:27:14 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 20:40:49 -0400 |
| commit | cbe778366f874a9328c9e191ce51c51e417a3026 (patch) | |
| tree | 0ad2c5660bad17e47cd072fc471db3ee0f004682 /src/server/hover.odin | |
| parent | fdec06dd815b2074a938a390ad15d798b4d24159 (diff) | |
Don't override the docs on the symbols to avoid memory corruption issues
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin index 0a82406..364585d 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -35,10 +35,11 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC } cat := concatenate_symbol_information(ast_context, symbol) + doc := construct_symbol_docs(symbol) if cat != "" { content.kind = "markdown" - content.value = fmt.tprintf("```odin\n%v\n```%v", cat, symbol.doc) + content.value = fmt.tprintf("```odin\n%v\n```%v", cat, doc) } else { content.kind = "plaintext" } |