aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-10-08 01:32:52 +0200
committerGitHub <noreply@github.com>2025-10-08 01:32:52 +0200
commit4c35d28c47e082a3a7bb38cd0c98d6def71e9637 (patch)
treecfd767d531ee11198c9c6c5e65090cfae651f792 /src/server
parent467fab2460a7fbb7f2a261cd7b314fa20b91cad1 (diff)
parentd3067c583084e39727ca724c960e1f800cf5366a (diff)
Merge pull request #1084 from thetarnav/read-file-temp-allocator
Use temp_allocator for read_entire_file on file change
Diffstat (limited to 'src/server')
-rw-r--r--src/server/requests.odin4
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