fix: don't hang project_manager if language server exits early

This commit is contained in:
CJ van den Berg 2024-04-17 21:13:20 +02:00
parent 939a70b249
commit 33dd4486eb

View file

@ -226,9 +226,10 @@ const Process = struct {
try self.frame_message_recv();
}
fn handle_terminated(self: *Process, err: []const u8, code: u32) !void {
fn handle_terminated(self: *Process, err: []const u8, code: u32) tp.result {
self.write_log("### subprocess terminated {s} {d} ###\n", .{ err, code });
try self.parent.send(.{ sp_tag, self.tag, "done" });
return tp.exit_normal();
}
fn send_request(self: *Process, from: tp.pid_ref, method: []const u8, params_cb: []const u8) !void {