From ff7f24adedf39fbd69a68a7bf691277d34d1e638 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Thu, 28 Aug 2025 18:15:47 -0400 Subject: Process defer statements and correct hover info for anonymous types --- src/server/completion.odin | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/server/completion.odin') diff --git a/src/server/completion.odin b/src/server/completion.odin index 262ba3f..4f36d6e 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -1658,12 +1658,7 @@ get_identifier_completion :: proc( if symbol, ok := resolve_type_identifier(ast_context, ident^); ok { if score, ok := common.fuzzy_match(matcher, ident.name); ok == 1 { - symbol.type_name = symbol.name - symbol.type_pkg = symbol.pkg - if symbol.type == .Variable { - symbol.pkg = ast_context.document_package - } - symbol.name = clean_ident(ident.name) + construct_ident_symbol_info(&symbol, ident, ast_context.document_package) append(results, CompletionResult{score = score * 1.7, symbol = symbol}) } } -- cgit v1.2.3