diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-17 12:49:43 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-17 12:49:43 -0400 |
| commit | 6e0968d764f4913521c6ceaa23d95ea64e18bf04 (patch) | |
| tree | 1e509f6db6429998552a2dd6fbeeaa160c4ba9a1 /src/server/collector.odin | |
| parent | 87693f65296e7e947d530e3274148753603434cc (diff) | |
Improvements with hover info and distinct symbols
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 4af9d7c..7f345c9 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -650,7 +650,6 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri 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.flags |= {.Distinct} if expr.builtin || strings.contains(uri, "builtin.odin") { symbol.pkg = "$builtin" @@ -667,6 +666,10 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.pkg = get_index_unique_string(collection, directory) } + if is_distinct { + symbol.flags |= {.Distinct} + } + if expr.deprecated { symbol.flags |= {.Deprecated} } |