From aec4e645f21271ecc4c90a65b56ea702fa88aba8 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:25:54 -0400 Subject: Correct hover info for soa pointers --- src/server/hover.odin | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/server/hover.odin') diff --git a/src/server/hover.odin b/src/server/hover.odin index 03cdedf..bf64967 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -354,11 +354,11 @@ get_hover_information :: proc(document: ^Document, position: common.Position) -> } } case SymbolSliceValue: - return get_soa_hover(&ast_context, selector, v.expr, nil, field) + return get_soa_field_hover(&ast_context, selector, v.expr, nil, field) case SymbolDynamicArrayValue: - return get_soa_hover(&ast_context, selector, v.expr, nil, field) + return get_soa_field_hover(&ast_context, selector, v.expr, nil, field) case SymbolFixedArrayValue: - return get_soa_hover(&ast_context, selector, v.expr, v.len, field) + return get_soa_field_hover(&ast_context, selector, v.expr, v.len, field) } } else if position_context.implicit_selector_expr != nil { implicit_selector := position_context.implicit_selector_expr @@ -439,7 +439,7 @@ get_hover_information :: proc(document: ^Document, position: common.Position) -> } @(private = "file") -get_soa_hover :: proc( +get_soa_field_hover :: proc( ast_context: ^AstContext, selector: Symbol, expr: ^ast.Expr, @@ -457,6 +457,7 @@ get_soa_hover :: proc( if selector.name != "" { symbol.pkg = selector.name } + symbol.name = field build_documentation(ast_context, &symbol, false) hover: Hover hover.contents = write_hover_content(ast_context, symbol) -- cgit v1.2.3