From 1ca6714db6c7fc713cfe81af0ca6609812c0e8f2 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Sun, 12 Jun 2022 02:06:55 +0200 Subject: Remember to correct uri for windows on save. --- src/server/requests.odin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/requests.odin b/src/server/requests.odin index eb6d532..db06cad 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -812,6 +812,11 @@ notification_did_save :: proc (params: json.Value, id: RequestId, config: ^commo flags = {.Optional_Semicolons}, } + when ODIN_OS == .Windows { + correct := common.get_case_sensitive_path(fullpath, context.temp_allocator) + fullpath, _ = filepath.to_slash(correct, context.temp_allocator) + } + dir := filepath.base(filepath.dir(fullpath, context.temp_allocator)) pkg := new(ast.Package) -- cgit v1.2.3