diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:35:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 23:39:25 -0300 |
| commit | 63e6ceefc7ab33e31c9d4f83387183e44089e443 (patch) | |
| tree | 62a63e4924643680849e4bca46030d536dfa26bb /test/lspbench.zig | |
| parent | 383256a741117596931c4e3817491041fde5229d (diff) | |
| download | pardes-63e6ceefc7ab33e31c9d4f83387183e44089e443.tar.gz pardes-63e6ceefc7ab33e31c9d4f83387183e44089e443.zip | |
lsp_client: try in place of 25 catch return error.OutOfMemory into an Err that already holds it, and of app(), which did the same; offsetAt, which only its test called, goes (the test checks posOf against strictOffset); query's gpa and status's req, never read, go, host_io's call and lspbench's two dropping the argument; the notes of the gone ZLS backend go, and renameEdits gets back its doc from above identAt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/lspbench.zig')
| -rw-r--r-- | test/lspbench.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lspbench.zig b/test/lspbench.zig index 08df9f4c..87b6d83e 100644 --- a/test/lspbench.zig +++ b/test/lspbench.zig @@ -188,7 +188,7 @@ fn runOnce(gpa: std.mem.Allocator, req_in: lsp.Req, expected: []const u8, r: *Re var out: std.Io.Writer.Allocating = .init(gpa); defer out.deinit(); const t0 = nowNs(); - try lsp.query(query_io, gpa, arena.allocator(), req, &out.writer); + try lsp.query(query_io, arena.allocator(), req, &out.writer); const ns = nowNs() -| t0; r.accept(out.written(), expected); return ns / 1000; @@ -443,7 +443,7 @@ fn probeCommand(init: std.process.Init) !void { var scratch: std.heap.ArenaAllocator = .init(gpa); defer scratch.deinit(); const t0 = nowUs(); - try lsp.query(query_io, gpa, scratch.allocator(), .{ + try lsp.query(query_io, scratch.allocator(), .{ .kind = kind, .path = path, .source = source, |
