aboutsummaryrefslogtreecommitdiff
path: root/src/server/collector.odin
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-12 15:08:43 +1100
committerGitHub <noreply@github.com>2026-02-12 15:08:43 +1100
commit4f309f96acc53f788dabf7a9d0cb7319dbe16ebd (patch)
treee8ad7fd5fd209adca67d6f4a9304da44116f99a1 /src/server/collector.odin
parent92b8c767d233c6556ebf46072f32a02d06277363 (diff)
parentb32550a87edcbd71d1084eec76c316161066bb06 (diff)
Merge pull request #1295 from BradLewis/feat/update-os-filepath
Update ols to use the new os and filepath packages
Diffstat (limited to 'src/server/collector.odin')
-rw-r--r--src/server/collector.odin6
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)