aboutsummaryrefslogtreecommitdiff
path: root/src/server/documents.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/documents.odin')
-rw-r--r--src/server/documents.odin6
1 files changed, 3 insertions, 3 deletions
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