aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-31 09:11:38 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-31 09:11:38 -0400
commita40c2eae5e4cc006f3223a7106c6bbd5c9946462 (patch)
treeecbddca1ee6be42cc29aba4ad1b8a21cb13c5be8 /src
parentb45922ff451c7944b55ec5f3cecd54688ab242c9 (diff)
Missing comment clone in collector
Diffstat (limited to 'src')
-rw-r--r--src/server/collector.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin
index 8ffa1e4..6bad491 100644
--- a/src/server/collector.odin
+++ b/src/server/collector.odin
@@ -634,7 +634,7 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri
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_comment(comment)
+ symbol.comment = strings.clone(get_comment(comment), collection.allocator)
symbol.flags |= {.Distinct}
if expr.builtin || strings.contains(uri, "builtin.odin") {