diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-10 10:57:58 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | 6878e1c309172d624c0d7a3555f6f0217ae6770e (patch) | |
| tree | 1331379616ecee3dc4da2b735ccf27c33e3a3817 /tools | |
| parent | bba412a3b2c83b4c6935baeaac979ead46c0a5dc (diff) | |
| download | pardes-6878e1c309172d624c0d7a3555f6f0217ae6770e.tar.gz pardes-6878e1c309172d624c0d7a3555f6f0217ae6770e.zip | |
Resolve relative restores in the dump directory and propagate LSP probe errors
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/lspprobe.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lspprobe.zig b/tools/lspprobe.zig index 8b953cec..0b7d772c 100644 --- a/tools/lspprobe.zig +++ b/tools/lspprobe.zig @@ -145,10 +145,11 @@ pub fn main(init: std.process.Init) !void { // first (cold, server-spawning) query — the status lines on // stderr narrate what the server does with the time var out: std.Io.Writer.Allocating = .init(gpa); + defer out.deinit(); var scratch: std.heap.ArenaAllocator = .init(gpa); defer scratch.deinit(); const t0 = nowUs(); - lsp.query(gpa, scratch.allocator(), .{ + try lsp.query(gpa, scratch.allocator(), .{ .kind = kind, .path = path, .source = source, @@ -158,7 +159,6 @@ pub fn main(init: std.process.Init) !void { }, &out.writer); timings[r] = nowUs() -| t0; rows = try arena.dupe(u8, out.written()); - out.deinit(); if (first_query) { first_query = false; if (warm_s > 0) for (0..warm_s * 10) |_| { |
