From d3067c583084e39727ca724c960e1f800cf5366a Mon Sep 17 00:00:00 2001 From: thetarnav Date: Tue, 7 Oct 2025 23:54:18 +0200 Subject: Use temp_allocator for read_entire_file on file change --- src/server/requests.odin | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/requests.odin b/src/server/requests.odin index 899d060..b42a3e3 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -1550,7 +1550,7 @@ notification_did_change_watched_files :: proc( find_all_package_aliases() } else { if uri, ok := common.parse_uri(change.uri, context.temp_allocator); ok { - if data, ok := os.read_entire_file(uri.path); ok { + if data, ok := os.read_entire_file(uri.path, context.temp_allocator); ok { index_file(uri, cast(string)data) } } @@ -1559,8 +1559,6 @@ notification_did_change_watched_files :: proc( find_all_package_aliases() } } - - } return .None -- cgit v1.2.3