diff options
| author | thetarnav <gthetarnav@gmail.com> | 2025-10-07 23:54:18 +0200 |
|---|---|---|
| committer | thetarnav <gthetarnav@gmail.com> | 2025-10-07 23:54:18 +0200 |
| commit | d3067c583084e39727ca724c960e1f800cf5366a (patch) | |
| tree | cfd767d531ee11198c9c6c5e65090cfae651f792 /src/server/requests.odin | |
| parent | 467fab2460a7fbb7f2a261cd7b314fa20b91cad1 (diff) | |
Use temp_allocator for read_entire_file on file change
Diffstat (limited to 'src/server/requests.odin')
| -rw-r--r-- | src/server/requests.odin | 4 |
1 files changed, 1 insertions, 3 deletions
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 |