summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-09-27 22:19:47 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2025-10-01 13:53:29 +0200
commit029e0a1fb4bb006c6fd059e05439239486b9976a (patch)
tree4712ec4f774cdd483b91933db234a9c4896c42d2 /src
parent99cbf695fff86d3c89261fe0f5c22c7843b3908a (diff)
Use the ranged argument from inlay hints to improve performance.
Diffstat (limited to 'src')
-rw-r--r--src/server/requests.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin
index ce98931..860e8c4 100644
--- a/src/server/requests.odin
+++ b/src/server/requests.odin
@@ -1314,7 +1314,7 @@ request_inlay_hint :: proc(
document := document_get(inlay_params.textDocument.uri)
if document == nil do return .InternalError
- resolve_entire_file_cached(document)
+ resolve_ranged_file(document, inlay_params.range, context.temp_allocator)
file, file_ok := file_resolve_cache.files[document.uri.uri]
if !file_ok do return .InternalError