diff options
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}) } } |