From 49d12e2a78fb0a9f92b571aca79ef027a444d16f Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Thu, 31 Jul 2025 08:03:59 -0400 Subject: Remove collector unique string indexing for comments and docs --- src/server/collector.odin | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/collector.odin b/src/server/collector.odin index 1a7c221..8ffa1e4 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -631,11 +631,10 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.range = common.get_token_range(expr.name_expr, file.src) symbol.name = get_index_unique_string(collection, name) symbol.type = token_type - doc := get_doc(expr.docs, collection.allocator) - symbol.doc = get_index_unique_string(collection, doc) + symbol.doc = get_doc(expr.docs, collection.allocator) symbol.uri = get_index_unique_string(collection, uri) comment := get_file_comment(file, symbol.range.start.line + 1) - symbol.comment = get_index_unique_string(collection, get_comment(comment)) + symbol.comment = get_comment(comment) symbol.flags |= {.Distinct} if expr.builtin || strings.contains(uri, "builtin.odin") { -- cgit v1.2.3