diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-10-04 20:31:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-04 20:31:25 +0200 |
| commit | 317b9b7f34b4876fa0b69591c1d31a3c0cb46f6a (patch) | |
| tree | eb4ccb0e18f73df70ff7c9110e3b8a1c90f491ab /src/testing | |
| parent | 55b3900c8fa1e439ea31aac984bedbabb8dcf5b0 (diff) | |
| parent | 9e83bc2dc63f97d57fb02dcb60907493616abd8e (diff) | |
Merge pull request #1074 from thetarnav/inlay-range-improved
Use document range in inlay hints
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 8 |
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 |