diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 15:25:54 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 15:29:52 -0400 |
| commit | aec4e645f21271ecc4c90a65b56ea702fa88aba8 (patch) | |
| tree | 137baabe28d900e5f85a4c9e5e08ff1bfbd398ed /src/server/hover.odin | |
| parent | 2aa0e380f2fc28a464c1a62d7cdc742b12783125 (diff) | |
Correct hover info for soa pointers
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 9 |
1 files changed, 5 insertions, 4 deletions
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) |