aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-28 18:15:47 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-28 18:15:47 -0400
commitff7f24adedf39fbd69a68a7bf691277d34d1e638 (patch)
treea56915f8fc0a253cc562e5b7b5acbe629a72445a /src/server/completion.odin
parent95adee92d78ba24478ed4be2c7b6e5b4212c7581 (diff)
Process defer statements and correct hover info for anonymous types
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin7
1 files changed, 1 insertions, 6 deletions
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})
}
}