diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-29 21:04:17 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-29 21:04:17 -0400 |
| commit | 7ce24730de1677b2ab5de77ccf0a4fa6c3373fda (patch) | |
| tree | bd2d5979eee9da7ecadfe868c99fdbd7c4c696e3 /src/server/collector.odin | |
| parent | 6c769f52ffd2cd40def26f758498ca4a8b2bce2b (diff) | |
Fix issue with constructing docs on indexed symbols
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 6bad491..1a7c221 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -631,10 +631,11 @@ 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 - symbol.doc = get_doc(expr.docs, collection.allocator) + doc := get_doc(expr.docs, collection.allocator) + symbol.doc = get_index_unique_string(collection, doc) symbol.uri = get_index_unique_string(collection, uri) comment := get_file_comment(file, symbol.range.start.line + 1) - symbol.comment = strings.clone(get_comment(comment), collection.allocator) + symbol.comment = get_index_unique_string(collection, get_comment(comment)) symbol.flags |= {.Distinct} if expr.builtin || strings.contains(uri, "builtin.odin") { |