fix: add workaround for LSPs sending junk null messages (omnisharp)
This commit is contained in:
parent
07ae58e542
commit
a4bd395122
1 changed files with 5 additions and 1 deletions
|
@ -375,7 +375,11 @@ const Process = struct {
|
||||||
self.write_log("### RECV:\n{s}\n###\n", .{bytes});
|
self.write_log("### RECV:\n{s}\n###\n", .{bytes});
|
||||||
self.frame_message_recv() catch |e| {
|
self.frame_message_recv() catch |e| {
|
||||||
self.write_log("### RECV error: {any}\n", .{e});
|
self.write_log("### RECV error: {any}\n", .{e});
|
||||||
return e;
|
switch (e) {
|
||||||
|
// ignore invalid LSP messages that are at least framed correctly
|
||||||
|
error.InvalidMessage, error.InvalidMessageField => {},
|
||||||
|
else => return e,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue