From dcc0192aa8619cdbe3bc149e52b0815f7b6e7605 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Wed, 24 Feb 2021 13:51:52 +0100 Subject: convert windows to lowercase since the client is not consistant whether drive is upper or lower --- src/index/collector.odin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/index/collector.odin b/src/index/collector.odin index f0d8c12..946d961 100644 --- a/src/index/collector.odin +++ b/src/index/collector.odin @@ -343,7 +343,13 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.name = get_index_unique_string(collection, name); symbol.pkg = get_index_unique_string(collection, directory); symbol.type = token_type; - symbol.uri = get_index_unique_string(collection, uri); + + when ODIN_OS == "windows" { + symbol.uri = get_index_unique_string(collection, strings.to_lower(uri, context.temp_allocator)); + } + else { + symbol.uri = get_index_unique_string(collection, uri); + } if expr.docs != nil { -- cgit v1.2.3