feat: log LSP receive errors
This commit is contained in:
parent
1533ec2993
commit
a79a49e4b9
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ const Process = struct {
|
||||||
fn handle_output(self: *Process, bytes: []u8) !void {
|
fn handle_output(self: *Process, bytes: []u8) !void {
|
||||||
try self.recv_buf.appendSlice(bytes);
|
try self.recv_buf.appendSlice(bytes);
|
||||||
self.write_log("### RECV:\n{s}\n###\n", .{bytes});
|
self.write_log("### RECV:\n{s}\n###\n", .{bytes});
|
||||||
try self.frame_message_recv();
|
self.frame_message_recv() catch |e| {
|
||||||
|
self.write_log("### RECV error: {any}\n", .{e});
|
||||||
|
return e;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_terminated(self: *Process, err: []const u8, code: u32) tp.result {
|
fn handle_terminated(self: *Process, err: []const u8, code: u32) tp.result {
|
||||||
|
|
Loading…
Add table
Reference in a new issue