diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-12 14:38:39 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-12 14:52:27 +1100 |
| commit | b32550a87edcbd71d1084eec76c316161066bb06 (patch) | |
| tree | e8ad7fd5fd209adca67d6f4a9304da44116f99a1 /src/server/collector.odin | |
| parent | 92b8c767d233c6556ebf46072f32a02d06277363 (diff) | |
Update ols to use the new os and filepath packages
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 24fd0fa..0f85774 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -679,11 +679,11 @@ get_symbol_package_name :: proc( } if strings.contains(uri, "intrinsics.odin") { - intrinsics_path := filepath.join( + intrinsics_path, _ := filepath.join( elems = {common.config.collections["base"], "/intrinsics"}, allocator = context.temp_allocator, ) - intrinsics_path, _ = filepath.to_slash(intrinsics_path, context.temp_allocator) + intrinsics_path, _ = filepath.replace_path_separators(intrinsics_path, '/', context.temp_allocator) return get_index_unique_string(collection, intrinsics_path) } @@ -712,7 +712,7 @@ write_doc_string :: proc(sb: ^strings.Builder, doc: string) { } collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: string) -> common.Error { - forward, _ := filepath.to_slash(file.fullpath, context.temp_allocator) + forward, _ := filepath.replace_path_separators(file.fullpath, '/', context.temp_allocator) directory := path.dir(forward, context.temp_allocator) package_map := get_package_mapping(file, collection.config, directory) exprs := collect_globals(file) |