From 928a6d23dce5c6b519da7ef007148253ff98d35f Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:55:26 +1100 Subject: Fix using filepath.to_slash on windows --- src/server/documents.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/documents.odin') diff --git a/src/server/documents.odin b/src/server/documents.odin index b9a50dd..3ac0263 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -164,7 +164,7 @@ document_setup :: proc(document: ^Document) { //Right now not all clients return the case correct windows path, and that causes issues with indexing, so we ensure that it's case correct. when ODIN_OS == .Windows { package_name := path.dir(document.uri.path, context.temp_allocator) - forward, _ := filepath.to_slash(common.get_case_sensitive_path(package_name), context.temp_allocator) + forward, _ := filepath.replace_path_separators(common.get_case_sensitive_path(package_name), '/', context.temp_allocator) if forward == "" { document.package_name = package_name } else { @@ -179,9 +179,9 @@ document_setup :: proc(document: ^Document) { fullpath: string if correct == "" { //This is basically here to handle the tests where the physical file doesn't actual exist. - document.fullpath, _ = filepath.to_slash(document.uri.path) + document.fullpath, _ = filepath.replace_path_separators(document.uri.path, '/', context.temp_allocator) } else { - document.fullpath, _ = filepath.to_slash(correct) + document.fullpath, _ = filepath.replace_path_separators(correct, '/', context.temp_allocator) } } else { document.fullpath = document.uri.path -- cgit v1.2.3