aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-02-24 13:51:52 +0100
committerDanielGavin <danielgavin5@hotmail.com>2021-02-24 13:51:52 +0100
commitdcc0192aa8619cdbe3bc149e52b0815f7b6e7605 (patch)
tree9a352d06bc07034654d527b004dcf4cfcc524ac4 /src
parentf24ea9ab8d15a0cbbf8c1da2a77e8d74f73b3fa3 (diff)
convert windows to lowercase since the client is not consistant whether drive is upper or lower
Diffstat (limited to 'src')
-rw-r--r--src/index/collector.odin8
1 files changed, 7 insertions, 1 deletions
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 {