aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.odin8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin
index 66ed992..4cb9484 100644
--- a/src/testing/testing.odin
+++ b/src/testing/testing.odin
@@ -584,10 +584,12 @@ expect_inlay_hints :: proc(t: ^testing.T, src: ^Source) {
setup(src)
defer teardown(src)
- resolve_flag: server.ResolveReferenceFlag
- symbols_and_nodes := server.resolve_entire_file(src.document, resolve_flag, )
+ symbols_and_nodes := server.resolve_entire_file(src.document, allocator=context.temp_allocator)
- hints, hints_ok := server.get_inlay_hints(src.document, symbols_and_nodes, &src.config)
+ range := common.Range {
+ end = {line = 9000000},
+ } //should be enough
+ hints, hints_ok := server.get_inlay_hints(src.document, range, symbols_and_nodes, &src.config)
if !hints_ok {
log.error("Failed get_inlay_hints")
return