From 9f2e58e63db1efbb5a126526a1d2537c98aeb882 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sun, 19 Oct 2025 17:04:25 +0200 Subject: Use the same create_uri function to ensure the uri is consistant when sending diagnostics. --- src/server/diagnostics.odin | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/server/diagnostics.odin') diff --git a/src/server/diagnostics.odin b/src/server/diagnostics.odin index 821aa74..2237f8c 100644 --- a/src/server/diagnostics.odin +++ b/src/server/diagnostics.odin @@ -20,12 +20,6 @@ add_diagnostics :: proc(type: DiagnosticType, uri: string, diagnostic: Diagnosti return } - uri := uri - - when ODIN_OS == .Windows { - uri = strings.to_lower(uri, context.temp_allocator) - } - diagnostic_array := &diagnostic_type[uri] if diagnostic_array == nil { @@ -49,12 +43,6 @@ remove_diagnostics :: proc(type: DiagnosticType, uri: string) { return } - uri := uri - - when ODIN_OS == .Windows { - uri = strings.to_lower(uri, context.temp_allocator) - } - diagnostic_array := &diagnostic_type[uri] if diagnostic_array == nil { -- cgit v1.2.3