From 6878e1c309172d624c0d7a3555f6f0217ae6770e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 10 Sep 2026 10:57:58 -0300 Subject: Resolve relative restores in the dump directory and propagate LSP probe errors --- tools/lspprobe.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/lspprobe.zig') 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) |_| { -- cgit v1.3