From 151fb26f5957338f670d2d6dbef01d75ff28cc8e Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Thu, 7 Aug 2025 22:06:22 -0400 Subject: Attempt consolidate structure for writing docs --- src/server/hover.odin | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/server/hover.odin') diff --git a/src/server/hover.odin b/src/server/hover.odin index 4719685..cba2234 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -34,7 +34,7 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC } } - cat := concatenate_symbol_information(ast_context, symbol) + cat := construct_symbol_information(ast_context, symbol) doc := construct_symbol_docs(symbol) if cat != "" { @@ -410,9 +410,11 @@ get_hover_information :: proc(document: ^Document, position: common.Position) -> } if resolved, ok := resolve_type_identifier(&ast_context, ident); ok { - resolved.type_name = resolved.name - resolved.type_pkg = resolved.pkg - resolved.name = ident.name + if resolved.name != ident.name { + resolved.type_name = resolved.name + resolved.type_pkg = resolved.pkg + resolved.name = ident.name + } if resolved.type == .Variable { resolved.pkg = ast_context.document_package } -- cgit v1.2.3