diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-28 18:23:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-28 18:23:47 -0400 |
| commit | 9f911012c3496fdc5e56733f0e7e52229ec37726 (patch) | |
| tree | a56915f8fc0a253cc562e5b7b5acbe629a72445a /src/server/completion.odin | |
| parent | 95adee92d78ba24478ed4be2c7b6e5b4212c7581 (diff) | |
| parent | ff7f24adedf39fbd69a68a7bf691277d34d1e638 (diff) | |
Merge pull request #942 from BradLewis/feat/parse-defer-statements
Process defer statements and correct hover info for anonymous types
Diffstat (limited to 'src/server/completion.odin')
| -rw-r--r-- | src/server/completion.odin | 7 |
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}) } } |